Package org.apache.felix.scr.impl.inject
Interface ComponentConstructor<S>
-
- All Known Implementing Classes:
ComponentConstructorImpl
public interface ComponentConstructor<S>
This is used to construct a component instance object, call the constructor and set the activation fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> S
newInstance(ScrComponentContext componentContext, java.util.Map<ReferenceMetadata,OpenStatus<S,?>> parameterMap)
Create a new instance
-
-
-
Method Detail
-
newInstance
<T> S newInstance(ScrComponentContext componentContext, java.util.Map<ReferenceMetadata,OpenStatus<S,?>> parameterMap) throws java.lang.Exception
Create a new instance- Parameters:
componentContext
- The component contextparameterMap
- A map of reference parameters for handling references in the constructor- Returns:
- The instance
- Throws:
java.lang.Exception
- If anything goes wrong, like constructor can't be found etc.
-
-