org.codehaus.plexus.component.manager
Interface ComponentManager

All Known Implementing Classes:
AbstractComponentManager, ClassicSingletonComponentManager, ContainerComponentManager, KeepAliveSingletonComponentManager, PerLookupComponentManager

public interface ComponentManager

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 3329 2006-05-23 06:47:54Z jvanzyl $
Author:
Jason van Zyl

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 ComponentManager copy()
           
 void dispose()
           
 java.lang.Object getComponent()
           
 ComponentDescriptor getComponentDescriptor()
           
 int getConnections()
           
 MutablePlexusContainer getContainer()
           
 java.lang.String getId()
           
 LifecycleHandler getLifecycleHandler()
           
 void initialize()
           
 void release(java.lang.Object component)
           
 void resume(java.lang.Object component)
           
 void setup(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor componentDescriptor)
           
 void suspend(java.lang.Object component)
           
 

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

copy

ComponentManager copy()

getId

java.lang.String getId()

setup

void setup(MutablePlexusContainer container,
           LifecycleHandler lifecycleHandler,
           ComponentDescriptor componentDescriptor)

initialize

void initialize()

getConnections

int getConnections()

getLifecycleHandler

LifecycleHandler getLifecycleHandler()

dispose

void dispose()
             throws ComponentLifecycleException
Throws:
ComponentLifecycleException

release

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

suspend

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

resume

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

getComponent

java.lang.Object getComponent()
                              throws ComponentInstantiationException,
                                     ComponentLifecycleException
Throws:
ComponentInstantiationException
ComponentLifecycleException

getComponentDescriptor

ComponentDescriptor getComponentDescriptor()

getContainer

MutablePlexusContainer getContainer()


Copyright © 2001-2006 Codehaus. All Rights Reserved.