org.codehaus.plexus.component.manager
Interface ComponentManager<T>

All Known Implementing Classes:
AbstractComponentManager, PerLookupComponentManager, SingletonComponentManager, StaticComponentManager

public interface ComponentManager<T>

Manages a component manager. Determines when a component is shutdown, and when it's started up. Each manager deals with only one component class, though may handle multiple instances of this class.

Version:
$Id: ComponentManager.java 8109 2009-02-11 18:20:25Z dain $
Author:
Jason van Zyl

Field Summary
static java.util.concurrent.atomic.AtomicLong NEXT_START_ID
          Deprecated. for internal use only.. will be removed
static java.lang.String ROLE
           
 
Method Summary
 void dispose()
           
 T getComponent()
           
 ComponentDescriptor<T> getComponentDescriptor()
           
 MutablePlexusContainer getContainer()
           
 LifecycleHandler getLifecycleHandler()
          Deprecated. use start instead
 long getStartId()
          Deprecated. for internal use only.. will be removed
 void release(java.lang.Object component)
           
 void start(java.lang.Object component)
           
 

Field Detail

ROLE

static final java.lang.String ROLE

NEXT_START_ID

static final java.util.concurrent.atomic.AtomicLong NEXT_START_ID
Deprecated. for internal use only.. will be removed
Method Detail

getLifecycleHandler

LifecycleHandler getLifecycleHandler()
Deprecated. use start instead


dispose

void dispose()
             throws ComponentLifecycleException
Throws:
ComponentLifecycleException

release

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

getComponent

T getComponent()
               throws ComponentInstantiationException,
                      ComponentLifecycleException
Throws:
ComponentInstantiationException
ComponentLifecycleException

getComponentDescriptor

ComponentDescriptor<T> getComponentDescriptor()

getContainer

MutablePlexusContainer getContainer()

start

void start(java.lang.Object component)
           throws PhaseExecutionException
Throws:
PhaseExecutionException

getStartId

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



Copyright © 2001-2009 Codehaus. All Rights Reserved.