org.codehaus.plexus.component.manager

Class AbstractComponentManager

public abstract class AbstractComponentManager extends Object implements ComponentManager, Cloneable

Field Summary
protected MapcomponentContextRealms
Contains a mapping from singleton instances to the realms they were used to configure with.
protected ComponentDescriptorcomponentDescriptor
intconnections
protected MutablePlexusContainercontainer
LifecycleHandlerlifecycleHandler
Method Summary
protected booleanconnected()
ComponentManagercopy()
protected ObjectcreateComponentInstance(ClassRealm realm)
protected ObjectcreateComponentInstance(ComponentDescriptor componentDescriptor, ClassRealm realm)
protected voiddecrementConnectionCount()
protected voidendComponentLifecycle(Object component)
ObjectgetComponent()
ComponentDescriptorgetComponentDescriptor()
intgetConnections()
MutablePlexusContainergetContainer()
LifecycleHandlergetLifecycleHandler()
LoggergetLogger()
protected voidincrementConnectionCount()
voidinitialize()
voidsetup(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor componentDescriptor)
protected voidstartComponentLifecycle(Object component, ClassRealm realm)

Field Detail

componentContextRealms

protected Map componentContextRealms
Contains a mapping from singleton instances to the realms they were used to configure with. This realm will be used to call all lifecycle methods.

componentDescriptor

protected ComponentDescriptor componentDescriptor

connections

private int connections

container

protected MutablePlexusContainer container

lifecycleHandler

private LifecycleHandler lifecycleHandler

Method Detail

connected

protected boolean connected()

copy

public ComponentManager copy()

createComponentInstance

protected Object createComponentInstance(ClassRealm realm)

createComponentInstance

protected Object createComponentInstance(ComponentDescriptor componentDescriptor, ClassRealm realm)

decrementConnectionCount

protected void decrementConnectionCount()

endComponentLifecycle

protected void endComponentLifecycle(Object component)

getComponent

public Object getComponent()

getComponentDescriptor

public ComponentDescriptor getComponentDescriptor()

getConnections

public int getConnections()

getContainer

public MutablePlexusContainer getContainer()

getLifecycleHandler

public LifecycleHandler getLifecycleHandler()

getLogger

public Logger getLogger()

incrementConnectionCount

protected void incrementConnectionCount()

initialize

public void initialize()

setup

public void setup(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor componentDescriptor)

startComponentLifecycle

protected void startComponentLifecycle(Object component, ClassRealm realm)