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

pinguet62/spring-specification

Repository files navigation

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!

Releases

No releases published

Packages

No packages published

Languages