public abstract class AbstractComponentManager<T> extends Object implements ComponentManager<T>
Modifier and Type | Field and Description |
---|---|
protected ComponentBuilder<T> |
builder |
protected Map<Object,org.codehaus.plexus.classworlds.realm.ClassRealm> |
componentContextRealms
Contains a mapping from singleton instances to the realms
they were used to configure with.
|
protected ComponentDescriptor<T> |
componentDescriptor |
protected MutablePlexusContainer |
container |
NEXT_START_ID, ROLE
Constructor and Description |
---|
AbstractComponentManager(MutablePlexusContainer container,
LifecycleHandler lifecycleHandler,
ComponentDescriptor<T> componentDescriptor,
String role,
String roleHint) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
connected() |
protected T |
createComponentInstance() |
protected void |
decrementConnectionCount() |
void |
dissociateComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm) |
protected void |
endComponentLifecycle(Object component) |
ComponentDescriptor<T> |
getComponentDescriptor() |
int |
getConnections() |
MutablePlexusContainer |
getContainer() |
LifecycleHandler |
getLifecycleHandler() |
Logger |
getLogger() |
org.codehaus.plexus.classworlds.realm.ClassRealm |
getRealm() |
String |
getRole() |
String |
getRoleHint() |
long |
getStartId()
Deprecated.
for internal use only.. will be removed
|
Class<? extends T> |
getType() |
protected void |
incrementConnectionCount() |
void |
start(Object component) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getComponent, release
protected final MutablePlexusContainer container
protected final ComponentDescriptor<T> componentDescriptor
protected final ComponentBuilder<T> builder
protected final Map<Object,org.codehaus.plexus.classworlds.realm.ClassRealm> componentContextRealms
public AbstractComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor<T> componentDescriptor, String role, String roleHint)
public ComponentDescriptor<T> getComponentDescriptor()
getComponentDescriptor
in interface ComponentManager<T>
public Class<? extends T> getType()
getType
in interface ComponentManager<T>
public org.codehaus.plexus.classworlds.realm.ClassRealm getRealm()
getRealm
in interface ComponentManager<T>
public String getRole()
getRole
in interface ComponentManager<T>
public String getRoleHint()
getRoleHint
in interface ComponentManager<T>
public LifecycleHandler getLifecycleHandler()
getLifecycleHandler
in interface ComponentManager<T>
LifecycleHandler
.protected void incrementConnectionCount()
protected void decrementConnectionCount()
protected boolean connected()
public int getConnections()
getConnections
in interface ComponentManager<T>
public void start(Object component) throws PhaseExecutionException
start
in interface ComponentManager<T>
PhaseExecutionException
public long getStartId()
getStartId
in interface ComponentManager<T>
protected T createComponentInstance() throws ComponentInstantiationException, ComponentLifecycleException
protected void endComponentLifecycle(Object component) throws ComponentLifecycleException
ComponentLifecycleException
public MutablePlexusContainer getContainer()
getContainer
in interface ComponentManager<T>
public Logger getLogger()
public void dissociateComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLifecycleException
dissociateComponentRealm
in interface ComponentManager<T>
ComponentLifecycleException
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.