org.codehaus.plexus.component.manager
Interface ComponentManager

All Known Implementing Classes:
AbstractComponentManager, ClassicSingletonComponentManager, ComponentLookupManagerComponentManager, 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 7089 2007-11-25 15:19:06Z jvanzyl $
Author:
Jason van Zyl

Field Summary
static String ROLE
           
 
Method Summary
 ComponentManager copy()
           
 void dispose()
           
 void dissociateComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
           
 Object getComponent()
           
 Object getComponent(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
           
 ComponentDescriptor getComponentDescriptor()
           
 int getConnections()
           
 MutablePlexusContainer getContainer()
           
 String getId()
           
 LifecycleHandler getLifecycleHandler()
           
 void initialize()
           
 void release(Object component)
           
 void setup(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor componentDescriptor)
           
 

Field Detail

ROLE

static final String ROLE
Method Detail

copy

ComponentManager copy()

getId

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(Object component)
             throws ComponentLifecycleException
Throws:
ComponentLifecycleException

getComponent

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

getComponent

Object getComponent(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
                    throws ComponentInstantiationException,
                           ComponentLifecycleException
Throws:
ComponentInstantiationException
ComponentLifecycleException

getComponentDescriptor

ComponentDescriptor getComponentDescriptor()

getContainer

MutablePlexusContainer getContainer()

dissociateComponentRealm

void dissociateComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
                              throws ComponentLifecycleException
Throws:
ComponentLifecycleException


Copyright © 2001-2007 Codehaus. All Rights Reserved.