Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

Latest commit

 

History

History
47 lines (34 loc) · 2.78 KB

README.md

File metadata and controls

47 lines (34 loc) · 2.78 KB

Spring Specification

Maintained Libraries.io for GitHub Known Vulnerabilities Codacy Badge https://github.com/pinguet62/spring-specification/actions?workflow=CI codecov.io Maven Central Javadocs Swagger

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

Sample

@Autowired
RuleBuilder builder;

Product product = ...
Rule<Product> rule = (Rule<Product>) builder.apply("CanSellToMinor");
boolean result = rule.test(product);

Admin console

  • create/delete business rules
  • manage tree of rules
  • manage rule parameters

Try sample!