This project provides:
- specification pattern basic API
- Spring support, to be integrated simply into any Spring application
- database storage and corresponding builder, for dynamic build
- admin interface for dynamic update of rules
@Autowired
RuleBuilder builder;
Product product = ...
Rule<Product> rule = (Rule<Product>) builder.apply("CanSellToMinor");
boolean result = rule.test(product);
- create/delete business rules
- manage tree of rules
- manage rule parameters