@FunctionalInterface public interface CbConfigurationComponent<T,U> extends SerializableLambda
The T generic parameter represents the type of the class on which the callback is invoked on.
The U generic parameter represents the type of the configuration class passed to the callback argument.
Using such callback provides a way for creating type-safe configurations from the actual Dictionary
that is
normally injected by Dependency Manager.
For more information about configuration types, please refer to ConfigurationDependencyBuilder
.
Modifier and Type | Method and Description |
---|---|
void |
accept(T instance,
U configuration,
org.apache.felix.dm.Component component)
Handles the given arguments
|
default CbConfigurationComponent<T,U> |
andThen(CbConfigurationComponent<T,U> after) |
void accept(T instance, U configuration, org.apache.felix.dm.Component component)
instance
- the Component implementation instance on which the callback is invoked on.configuration
- the configuration proxycomponent
- the callback Componentdefault CbConfigurationComponent<T,U> andThen(CbConfigurationComponent<T,U> after)