zam_factory_pattern library
Classes
-
Factory<
KEY extends Object, INSTANCE extends Object> - A Factory constains a list of builders mapped to their respective keys.
-
ModifiableFactory<
KEY extends Object, INSTANCE extends Object> - Factory where builders can be added and removed at any time.
-
TypedFactory<
INSTANCE extends Object> - Factory where Type is used as a key.
Mixins
-
ModifiableFactoryMixin<
KEY extends Object, INSTANCE extends Object> - A mixin that makes a Factory into a ModifiableFactory where builders can be added and removed at any time.
Exceptions / Errors
- BuilderNotFoundInFactoryException
- Exception that is thrown when a builder is not found in the factory.