C
- The configuration class consumed for the creation.T
- Public interface of created component.public interface CustomAddonCreator<C extends Configuration,T extends Component>
Modifier and Type | Method and Description |
---|---|
T |
createCustom(PositionInformation positionInformation,
C configuration,
ConstructionContext constructionContext)
Creates an component for the given configuration.
|
java.lang.Class<T> |
getComponentInterface()
Returns the public interface of the component which gets created.
|
T createCustom(PositionInformation positionInformation, C configuration, ConstructionContext constructionContext) throws ConfigurationException, AddonException
positionInformation
- The position in the measurement hierarchy where the addon should be constructed.configuration
- The configuration of the addon.constructionContext
- The context of the construction, providing information and functionality in the construction of the addon.ConfigurationException
- Thrown if the configuration is invalid.AddonException
- Thrown if an error occurred during the construction.java.lang.Class<T> getComponentInterface()