Class AbstractService.TypeCreator<T>
java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService.TypeCreator<T>
- Type Parameters:
T- the actual type
- Enclosing class:
AbstractService
Represents a type creator with actual type being created.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTypeCreator(Class<T> cls, Supplier<T> creator) Creates a type creator instance. -
Method Summary
-
Field Details
-
cls
-
creator
-
-
Constructor Details
-
TypeCreator
Creates a type creator instance.- Parameters:
cls- the actual typecreator- function creating an instance
-
-
Method Details
-
getType
Returns the type being created.- Returns:
- the type
-
getCreator
Returns the creator function.- Returns:
- the creator function
-