org.codehaus.plexus.component.manager
Interface ComponentManager

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

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 7818 2008-11-11 17:57:14Z dain $
Author:
Jason van Zyl

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

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,
           java.lang.String role,
           java.lang.String roleHint)

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

getComponent

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

getComponentDescriptor

ComponentDescriptor getComponentDescriptor()

getRole

java.lang.String getRole()

getRoleHint

java.lang.String getRoleHint()

getContainer

MutablePlexusContainer getContainer()

dissociateComponentRealm

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

getRealm

org.codehaus.plexus.classworlds.realm.ClassRealm getRealm()


Copyright © 2001-2008 Codehaus. All Rights Reserved.