Package org.daisy.dotify.api.factory
Provides factory classes for coexisting implementations of a certain type. The main purpose is to allow a user to choose a factory at runtime, based on each factory's name and description.
Provides the foundation to discover and create objects. At the top level is the Provider interface. Its sole purpose is to provide a collection of factories. The factories implement the Factory interface.
Different factories creating the same type of objects can be combined in a FactoryCatalog. The catalog can then be used to extract a list of all factories that can be used to create a specific type of objects.
Note that the objects created using a Factory implementation are not controlled by these interfaces.
-
Interface Summary Interface Description Factory Provides an interface for common properties of a Factory.FactoryCatalog<T extends Factory> Provides an interface for factory catalogs.FactoryFilter Provides an interface for filtering a collection of Factories.FactoryProperties Provides factory properties.Provider<T extends FactoryProperties> Provides an interface for a collection of Factories. -
Class Summary Class Description AbstractFactory Provides an abstract class for Factories.FactoryProperties.ComparatorBuilder Provides a comparator builder for factory properties. -
Enum Summary Enum Description FactoryProperties.ComparatorBuilder.SortOrder Defines the sort order.FactoryProperties.ComparatorBuilder.SortProperty Defines the item to sort by.