org.codehaus.plexus.component.manager

Class AbstractComponentManager

Implemented Interfaces:
Cloneable, ComponentManager
Known Direct Subclasses:
ClassicSingletonComponentManager, KeepAliveSingletonComponentManager, PerLookupComponentManager

public abstract class AbstractComponentManager
extends java.lang.Object
implements ComponentManager, Cloneable

Field Summary

private ComponentDescriptor
componentDescriptor
private int
connections
private PlexusContainer
container
private String
id
private LifecycleHandler
lifecycleHandler

Fields inherited from interface org.codehaus.plexus.component.manager.ComponentManager

ROLE

Method Summary

protected boolean
connected()
ComponentManager
copy()
protected Object
createComponentInstance()
protected void
decrementConnectionCount()
protected void
endComponentLifecycle(Object component)
ComponentDescriptor
getComponentDescriptor()
int
getConnections()
PlexusContainer
getContainer()
String
getId()
LifecycleHandler
getLifecycleHandler()
Logger
getLogger()
protected void
incrementConnectionCount()
void
initialize()
void
resume(Object component)
void
setup(PlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor componentDescriptor)
protected void
startComponentLifecycle(Object component)
void
suspend(Object component)

Field Details

componentDescriptor

private ComponentDescriptor componentDescriptor

connections

private int connections

container

private PlexusContainer container

id

private String id

lifecycleHandler

private LifecycleHandler lifecycleHandler

Method Details

connected

protected boolean connected()

copy

public ComponentManager copy()
Specified by:
copy in interface ComponentManager

createComponentInstance

protected Object createComponentInstance()
            throws ComponentInstantiationException,
                   ComponentLifecycleException

decrementConnectionCount

protected void decrementConnectionCount()

endComponentLifecycle

protected void endComponentLifecycle(Object component)
            throws ComponentLifecycleException

getComponentDescriptor

public ComponentDescriptor getComponentDescriptor()
Specified by:
getComponentDescriptor in interface ComponentManager

getConnections

public int getConnections()
Specified by:
getConnections in interface ComponentManager

getContainer

public PlexusContainer getContainer()
Specified by:
getContainer in interface ComponentManager

getId

public String getId()
Specified by:
getId in interface ComponentManager

getLifecycleHandler

public LifecycleHandler getLifecycleHandler()
Specified by:
getLifecycleHandler in interface ComponentManager

getLogger

public Logger getLogger()

incrementConnectionCount

protected void incrementConnectionCount()

initialize

public void initialize()
Specified by:
initialize in interface ComponentManager

resume

public void resume(Object component)
            throws ComponentLifecycleException
Specified by:
resume in interface ComponentManager

setup

public void setup(PlexusContainer container,
                  LifecycleHandler lifecycleHandler,
                  ComponentDescriptor componentDescriptor)
Specified by:
setup in interface ComponentManager

startComponentLifecycle

protected void startComponentLifecycle(Object component)
            throws ComponentLifecycleException

suspend

public void suspend(Object component)
            throws ComponentLifecycleException
Specified by:
suspend in interface ComponentManager