org.codehaus.plexus.component.manager
Class AbstractComponentManager
java.lang.Object
org.codehaus.plexus.component.manager.AbstractComponentManager
- All Implemented Interfaces:
- Cloneable, ComponentManager
- Direct Known Subclasses:
- ClassicSingletonComponentManager, ComponentLookupManagerComponentManager, ContainerComponentManager, KeepAliveSingletonComponentManager, PerLookupComponentManager
public abstract class AbstractComponentManager
- extends Object
- implements ComponentManager, Cloneable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected MutablePlexusContainer container
componentDescriptor
protected org.codehaus.plexus.component.repository.ComponentDescriptor componentDescriptor
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.
AbstractComponentManager
public AbstractComponentManager()
copy
public ComponentManager copy()
- Specified by:
copy
in interface ComponentManager
getComponentDescriptor
public org.codehaus.plexus.component.repository.ComponentDescriptor getComponentDescriptor()
- Specified by:
getComponentDescriptor
in interface ComponentManager
getId
public String getId()
- Specified by:
getId
in interface ComponentManager
getLifecycleHandler
public LifecycleHandler getLifecycleHandler()
- Specified by:
getLifecycleHandler
in interface ComponentManager
incrementConnectionCount
protected void incrementConnectionCount()
decrementConnectionCount
protected void decrementConnectionCount()
connected
protected boolean connected()
getConnections
public int getConnections()
- Specified by:
getConnections
in interface ComponentManager
setup
public void setup(MutablePlexusContainer container,
LifecycleHandler lifecycleHandler,
org.codehaus.plexus.component.repository.ComponentDescriptor componentDescriptor)
- Specified by:
setup
in interface ComponentManager
initialize
public void initialize()
- Specified by:
initialize
in interface ComponentManager
createComponentInstance
protected Object createComponentInstance(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
throws ComponentInstantiationException,
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Throws:
ComponentInstantiationException
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
startComponentLifecycle
protected void startComponentLifecycle(Object component,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
suspend
public void suspend(Object component)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
suspend
in interface ComponentManager
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
resume
public void resume(Object component)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
resume
in interface ComponentManager
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
endComponentLifecycle
protected void endComponentLifecycle(Object component)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
getContainer
public MutablePlexusContainer getContainer()
- Specified by:
getContainer
in interface ComponentManager
getLogger
public org.codehaus.plexus.logging.Logger getLogger()
createComponentInstance
protected Object createComponentInstance(org.codehaus.plexus.component.repository.ComponentDescriptor componentDescriptor,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
throws ComponentInstantiationException,
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Throws:
ComponentInstantiationException
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
getComponent
public Object getComponent()
throws ComponentInstantiationException,
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
getComponent
in interface ComponentManager
- Throws:
ComponentInstantiationException
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
Copyright © 2001-2009 Codehaus. All Rights Reserved.