Package org.jmolecules.ddd.annotation
Annotation Type Factory
-
@Retention(RUNTIME) @Target(TYPE) @Documented public @interface Factory
Identifies aFactory
. Factories encapsulate the responsibility of creating complex objects in general and Aggregates in particular. Objects returned by the factory methods are guaranteed to be in valid state.