Interface ComponentManagerFactory
-
- All Known Implementing Classes:
PerLookupComponentManagerFactory,SingletonComponentManagerFactory
public interface ComponentManagerFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> ComponentManager<T>createComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor<T> componentDescriptor, String role, String roleHint)Creates a new component manager for the specified component descriptor.StringgetId()Gets the unique identifier of this ComponentManagerFactory.
-
-
-
Method Detail
-
getId
String getId()
Gets the unique identifier of this ComponentManagerFactory. This id is the instantiation strategy specified in a component descriptor.- Returns:
- the unique identifier and instantiation strategy name
-
createComponentManager
<T> ComponentManager<T> createComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor<T> componentDescriptor, String role, String roleHint)
Creates a new component manager for the specified component descriptor.- Type Parameters:
T- The type.- Parameters:
container-MutablePlexusContainer.lifecycleHandler-LifecycleHandler.componentDescriptor-ComponentDescriptorrole- The role.roleHint- The hint for the role.- Returns:
ComponentManager
-
-