Factories

A factory is a special-purpose service object for creating other objects. Both value objects and entity objects can be created by factories.

Domian Factories

Domian factories are described by this interface:

public interface Factory<T> {
    T createObjectSpecifiedBy(Specification<T> specification);
}

The interface also contains aliased method versions, many of them compacted. See the net.sourceforge.domian.factory.Factory Javadoc.

Factory implementations are planned in v0.6...