Interface ComponentManager<T>
-
- All Known Implementing Classes:
AbstractComponentManager,PerLookupComponentManager,SingletonComponentManager
public interface ComponentManager<T>Manages a component manager. Determines when a component is shutdown, and when it's started up. Each manager deals with only one component class, though may handle multiple instances of this class.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.atomic.AtomicLongNEXT_START_IDDeprecated.for internal use only..static java.lang.StringROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddispose()voiddissociateComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)TgetComponent()ComponentDescriptor<T>getComponentDescriptor()intgetConnections()MutablePlexusContainergetContainer()LifecycleHandlergetLifecycleHandler()Deprecated.use start insteadorg.codehaus.plexus.classworlds.realm.ClassRealmgetRealm()java.lang.StringgetRole()java.lang.StringgetRoleHint()longgetStartId()Deprecated.for internal use only..java.lang.Class<? extends T>getType()voidrelease(java.lang.Object component)voidstart(java.lang.Object component)
-
-
-
Method Detail
-
getConnections
int getConnections()
-
getLifecycleHandler
LifecycleHandler getLifecycleHandler()
Deprecated.use start instead- Returns:
LifecycleHandler.
-
dispose
void dispose() throws ComponentLifecycleException- Throws:
ComponentLifecycleException
-
release
void release(java.lang.Object component) throws ComponentLifecycleException- Throws:
ComponentLifecycleException
-
getComponent
T getComponent() throws ComponentInstantiationException, ComponentLifecycleException
-
getComponentDescriptor
ComponentDescriptor<T> getComponentDescriptor()
-
getType
java.lang.Class<? extends T> getType()
-
getRole
java.lang.String getRole()
-
getRoleHint
java.lang.String getRoleHint()
-
getContainer
MutablePlexusContainer getContainer()
-
dissociateComponentRealm
void dissociateComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLifecycleException- Throws:
ComponentLifecycleException
-
getRealm
org.codehaus.plexus.classworlds.realm.ClassRealm getRealm()
-
start
void start(java.lang.Object component) throws PhaseExecutionException- Throws:
PhaseExecutionException
-
getStartId
long getStartId()
Deprecated.for internal use only.. will be removed- Returns:
- The start id.
-
-