Class SingletonComponentManagerFactory
java.lang.Object
org.codehaus.plexus.component.manager.SingletonComponentManagerFactory
- All Implemented Interfaces:
ComponentManagerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateComponentManager
(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor componentDescriptor, String role, String roleHint) Creates a new component manager for the specified component descriptor.getId()
Gets the unique identifier of this ComponentManagerFactory.
-
Constructor Details
-
SingletonComponentManagerFactory
public SingletonComponentManagerFactory()
-
-
Method Details
-
getId
Description copied from interface:ComponentManagerFactory
Gets the unique identifier of this ComponentManagerFactory. This id is the instantiation strategy specified in a component descriptor.- Specified by:
getId
in interfaceComponentManagerFactory
- Returns:
- the unique identifier and instantiation strategy name
-
createComponentManager
public ComponentManager<?> createComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor componentDescriptor, String role, String roleHint) Description copied from interface:ComponentManagerFactory
Creates a new component manager for the specified component descriptor.- Specified by:
createComponentManager
in interfaceComponentManagerFactory
- Parameters:
container
-MutablePlexusContainer
.lifecycleHandler
-LifecycleHandler
.componentDescriptor
-ComponentDescriptor
role
- The role.roleHint
- The hint for the role.- Returns:
ComponentManager
-