org.codehaus.plexus.component.manager
Class AbstractComponentManager

java.lang.Object
  extended byorg.codehaus.plexus.component.manager.AbstractComponentManager
All Implemented Interfaces:
java.lang.Cloneable, ComponentManager
Direct Known Subclasses:
ClassicSingletonComponentManager, ContainerComponentManager, KeepAliveSingletonComponentManager, PerLookupComponentManager

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


Field Summary
 
Fields inherited from interface org.codehaus.plexus.component.manager.ComponentManager
ROLE
 
Constructor Summary
AbstractComponentManager()
           
 
Method Summary
protected  boolean connected()
           
 ComponentManager copy()
           
protected  java.lang.Object createComponentInstance()
           
protected  java.lang.Object createComponentInstance(org.codehaus.plexus.component.repository.ComponentDescriptor componentDescriptor)
           
protected  void decrementConnectionCount()
           
protected  void endComponentLifecycle(java.lang.Object component)
           
 org.codehaus.plexus.component.repository.ComponentDescriptor getComponentDescriptor()
           
 int getConnections()
           
 MutablePlexusContainer getContainer()
           
 java.lang.String getId()
           
 LifecycleHandler getLifecycleHandler()
           
 org.codehaus.plexus.logging.Logger getLogger()
           
protected  void incrementConnectionCount()
           
 void initialize()
           
 void resume(java.lang.Object component)
           
 void setup(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, org.codehaus.plexus.component.repository.ComponentDescriptor componentDescriptor)
           
protected  void startComponentLifecycle(java.lang.Object component)
           
 void suspend(java.lang.Object component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.plexus.component.manager.ComponentManager
dispose, getComponent, release
 

Constructor Detail

AbstractComponentManager

public AbstractComponentManager()
Method Detail

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 java.lang.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 java.lang.Object createComponentInstance()
                                            throws ComponentInstantiationException,
                                                   org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
Throws:
ComponentInstantiationException
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException

startComponentLifecycle

protected void startComponentLifecycle(java.lang.Object component)
                                throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException

suspend

public void suspend(java.lang.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(java.lang.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(java.lang.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 java.lang.Object createComponentInstance(org.codehaus.plexus.component.repository.ComponentDescriptor componentDescriptor)
                                            throws ComponentInstantiationException,
                                                   org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
Throws:
ComponentInstantiationException
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException


Copyright © 2001-2006 Codehaus. All Rights Reserved.