Class PerLookupComponentManager<T>
- java.lang.Object
-
- org.codehaus.plexus.component.manager.AbstractComponentManager<T>
-
- org.codehaus.plexus.component.manager.PerLookupComponentManager<T>
-
- All Implemented Interfaces:
ComponentManager<T>
public class PerLookupComponentManager<T> extends AbstractComponentManager<T>
Creates a new component manager for every lookup- Author:
- Jason van Zyl
-
-
Field Summary
-
Fields inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager
builder, componentContextRealms, componentDescriptor, container
-
Fields inherited from interface org.codehaus.plexus.component.manager.ComponentManager
NEXT_START_ID, ROLE
-
-
Constructor Summary
Constructors Constructor Description PerLookupComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor<T> componentDescriptor, String role, String roleHint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
T
getComponent()
void
release(Object component)
-
Methods inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager
connected, createComponentInstance, decrementConnectionCount, dissociateComponentRealm, endComponentLifecycle, getComponentDescriptor, getConnections, getContainer, getLifecycleHandler, getLogger, getRealm, getRole, getRoleHint, getStartId, getType, incrementConnectionCount, start
-
-
-
-
Constructor Detail
-
PerLookupComponentManager
public PerLookupComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor<T> componentDescriptor, String role, String roleHint)
-
-
Method Detail
-
dispose
public void dispose()
-
getComponent
public T getComponent() throws ComponentInstantiationException, ComponentLifecycleException
-
release
public void release(Object component) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
-