deliveredtechnologies / rulebook

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

Instantiate Reflections object as-needed. Fix for #155. #190

Closed azell closed 3 years ago

azell commented 4 years ago

Existing code always creates a Reflections object that scans the packages. The pull request limits the object creation to once, inside of the write lock.

Also enforces the best practice of only accessing the _rules field when holding a lock.

awattez commented 4 years ago

Any update ?