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

java.lang.Object
  extended by org.codehaus.plexus.component.manager.StaticComponentManager<T>
All Implemented Interfaces:
ComponentManager<T>

public class StaticComponentManager<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
StaticComponentManager(MutablePlexusContainer container, T instance, java.lang.Class<?> role, java.lang.String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
           
 
Method Summary
 void dispose()
           
 T getComponent()
           
 ComponentDescriptor<T> getComponentDescriptor()
           
 MutablePlexusContainer getContainer()
           
 LifecycleHandler getLifecycleHandler()
           
 long getStartId()
           
 void release(java.lang.Object component)
           
 void start(java.lang.Object component)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticComponentManager

public StaticComponentManager(MutablePlexusContainer container,
                              T instance,
                              java.lang.Class<?> role,
                              java.lang.String roleHint,
                              org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Method Detail

getLifecycleHandler

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

getComponent

public T getComponent()
               throws ComponentLifecycleException
Specified by:
getComponent in interface ComponentManager<T>
Throws:
ComponentLifecycleException

dispose

public void dispose()
             throws ComponentLifecycleException
Specified by:
dispose in interface ComponentManager<T>
Throws:
ComponentLifecycleException

release

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

getComponentDescriptor

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

getContainer

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

start

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

getStartId

public long getStartId()
Specified by:
getStartId in interface ComponentManager<T>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 Codehaus. All Rights Reserved.