org.codehaus.plexus.component.manager
Class AbstractComponentManager<T>

java.lang.Object
  extended by org.codehaus.plexus.component.manager.AbstractComponentManager<T>
All Implemented Interfaces:
ComponentManager<T>
Direct Known Subclasses:
PerLookupComponentManager, SingletonComponentManager

public abstract class AbstractComponentManager<T>
extends java.lang.Object
implements ComponentManager<T>


Field Summary
 
Fields inherited from interface org.codehaus.plexus.component.manager.ComponentManager
NEXT_START_ID, ROLE
 
Constructor Summary
AbstractComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor<T> componentDescriptor)
           
 
Method Summary
protected  T createInstance()
           
protected  void destroyInstance(java.lang.Object component)
           
 ComponentDescriptor<T> getComponentDescriptor()
           
 MutablePlexusContainer getContainer()
           
 LifecycleHandler getLifecycleHandler()
           
 long getStartId()
          Deprecated. for internal use only.. will be removed
 void start(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(MutablePlexusContainer container,
                                LifecycleHandler lifecycleHandler,
                                ComponentDescriptor<T> componentDescriptor)
Method Detail

getComponentDescriptor

public ComponentDescriptor<T> getComponentDescriptor()
Specified by:
getComponentDescriptor in interface ComponentManager<T>

getLifecycleHandler

public LifecycleHandler getLifecycleHandler()
Specified by:
getLifecycleHandler in interface ComponentManager<T>

createInstance

protected T createInstance()
                    throws ComponentInstantiationException,
                           ComponentLifecycleException
Throws:
ComponentInstantiationException
ComponentLifecycleException

destroyInstance

protected void destroyInstance(java.lang.Object component)
                        throws ComponentLifecycleException
Throws:
ComponentLifecycleException

start

public void start(java.lang.Object component)
           throws PhaseExecutionException
Specified by:
start in interface ComponentManager<T>
Throws:
PhaseExecutionException

getStartId

public long getStartId()
Deprecated. for internal use only.. will be removed

Specified by:
getStartId in interface ComponentManager<T>

getContainer

public MutablePlexusContainer getContainer()
Specified by:
getContainer in interface ComponentManager<T>


Copyright © 2001-2009 Codehaus. All Rights Reserved.