Package org.daisy.factory
package org.daisy.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.
- Author:
- Joel HÃ¥kansson
-
ClassDescriptionProvides an abstract class for Factories.Provides an interface for common properties of a Factory.FactoryCatalog<T extends Factory>Provides an interface for factory catalogs.FactoryFilter<T extends Factory>Provides an interface for filtering a collection of Factories.Provides an interface for a collection of Factories.