org.codehaus.plexus
Interface PlexusContainer

All Known Implementing Classes:
ComponentPlexusContainer, DefaultPlexusContainer

public interface PlexusContainer


Field Summary
static java.lang.String ROLE
           
 
Method Summary
 void addContextValue(java.lang.Object key, java.lang.Object value)
           
 void dispose()
           
 ComponentDescriptor getComponentDescriptor(java.lang.String role)
           
 java.util.Map getComponentDescriptorMap(java.lang.String role)
           
 boolean hasComponent(java.lang.String componentKey)
           
 boolean hasComponent(java.lang.String role, java.lang.String id)
           
 void initialize()
           
 java.lang.Object lookup(java.lang.String componentKey)
           
 java.lang.Object lookup(java.lang.String role, java.lang.String id)
           
 java.util.List lookupList(java.lang.String role)
           
 java.util.Map lookupMap(java.lang.String role)
           
 void release(java.lang.Object component)
           
 void releaseAll(java.util.List components)
           
 void releaseAll(java.util.Map components)
           
 void resume(java.lang.Object component)
           
 void setConfigurationResource(java.io.Reader configuration)
           
 void start()
           
 void suspend(java.lang.Object component)
           
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

lookup

public java.lang.Object lookup(java.lang.String componentKey)
                        throws ComponentLookupException
Throws:
ComponentLookupException

lookup

public java.lang.Object lookup(java.lang.String role,
                               java.lang.String id)
                        throws ComponentLookupException
Throws:
ComponentLookupException

lookupMap

public java.util.Map lookupMap(java.lang.String role)
                        throws ComponentLookupException
Throws:
ComponentLookupException

lookupList

public java.util.List lookupList(java.lang.String role)
                          throws ComponentLookupException
Throws:
ComponentLookupException

getComponentDescriptorMap

public java.util.Map getComponentDescriptorMap(java.lang.String role)

getComponentDescriptor

public ComponentDescriptor getComponentDescriptor(java.lang.String role)

release

public void release(java.lang.Object component)

releaseAll

public void releaseAll(java.util.Map components)

releaseAll

public void releaseAll(java.util.List components)

hasComponent

public boolean hasComponent(java.lang.String componentKey)

hasComponent

public boolean hasComponent(java.lang.String role,
                            java.lang.String id)

suspend

public void suspend(java.lang.Object component)

resume

public void resume(java.lang.Object component)

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

dispose

public void dispose()
             throws java.lang.Exception
Throws:
java.lang.Exception

addContextValue

public void addContextValue(java.lang.Object key,
                            java.lang.Object value)

setConfigurationResource

public void setConfigurationResource(java.io.Reader configuration)
                              throws PlexusConfigurationResourceException
Throws:
PlexusConfigurationResourceException