Interface ComponentManagerFactory
- All Known Implementing Classes:
PerLookupComponentManagerFactory,SingletonComponentManagerFactory
public interface ComponentManagerFactory
-
Method Summary
Modifier and TypeMethodDescription<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.getId()Gets the unique identifier of this ComponentManagerFactory.
-
Method Details
-
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
-