Package org.seedstack.business.specification
Provides classes, interfaces and annotations to create composite specifications.
-
Interface Summary Interface Description Specification<T> ASpecificationis a pattern that is able to tell if a candidate object matches some criteria.SubstitutableSpecification<T> Specifications that can be substituted by another specification without changing the satisfaction result should implement this interface. -
Class Summary Class Description AndSpecification<T> A specification composing multiple specifications with a logical AND.FalseSpecification<T> An always false specification, NOT satisfied by any candidate object.IdentitySpecification<A extends AggregateRoot<I>,I> A specification that can only be applied toAggregateRoots and that is satisfied only if the candidate aggregate has an identifier equal to the expected one.NotSpecification<T> A specification negating another specification.OrSpecification<T> A specification composing multiple specifications with a logical OR.TrueSpecification<T> An always true specification, satisfied by any candidate object.