Package de.espirit.common.util
Interface Factory<T,C>
- Type Parameters:
T
- The type of produced instances.C
- The type of configuration objects.
- All Known Subinterfaces:
LabelFactory<T>
,OptionFactory
public interface Factory<T,C>
A factory creating instances of type T based on a given configuration.
- Since:
- 5.2.210803
-
Method Summary
-
Method Details
-
create
Create an instance of type T based on the given configuration.- Parameters:
config
- The configuration.- Returns:
- The produced instance.
- Throws:
FactoryException
- If an instance could not be created.- Since:
- 5.2.210803
-