deliveredtechnologies / rulebook

100% Java, Lambda Enabled, Lightweight Rules Engine with a Simple and Intuitive DSL
http://www.deliveredtechnologies.com
Apache License 2.0
717 stars 124 forks source link

allow spring rule book to be strict and disallow POJO rules #154

Closed Panthro closed 5 years ago

Panthro commented 5 years ago

The idea of this feature is to have Spring runners that does not allow POJO rules to be executed.

I currently have a scenario where I only have SpringBeans, and within the execution sometimes one bean fail to initialise due to an error (a BeanInstantiationException is thrown) and I don't want a POJO rule because the required underlying services are going to be all null and the rule will fail with NPE everywhere.

So if I have a strict runner that does not load POJO rules when one of my rules fails to instantiate in a spring fashion it will at least warn me with a log + exception in my logs.

Clayton7510 commented 5 years ago

I think I see where you were going with this. But I don't think this ever passed the build validation. Re-running to make sure.

Clayton7510 commented 5 years ago

Yea, the build for this PR fails. :'( You can check the build results using ./gradlew clean build or ./gradlew check. The actual command run by TavisCI for validation is ./gradlew clean build

Clayton7510 commented 5 years ago

Closing due to inactivity.