org.codehaus.plexus
Interface PlexusContainer

All Known Subinterfaces:
MutablePlexusContainer
All Known Implementing Classes:
DefaultPlexusContainer

public interface PlexusContainer


Field Summary
static java.lang.String ROLE
           
 
Method Summary
 void addComponentDescriptor(ComponentDescriptor componentDescriptor)
           
 void addContextValue(java.lang.Object key, java.lang.Object value)
           
 void addJarRepository(java.io.File repository)
           
 void addJarResource(java.io.File resource)
           
 java.lang.Object autowire(java.lang.Object component)
           
 java.lang.Object createAndAutowire(java.lang.String clazz)
           
 PlexusContainer createChildContainer(java.lang.String name, java.util.List classpathJars, java.util.Map context)
           
 PlexusContainer createChildContainer(java.lang.String name, java.util.List classpathJars, java.util.Map context, java.util.List discoveryListeners)
           
 void dispose()
           
 PlexusContainer getChildContainer(java.lang.String name)
           
 ComponentDescriptor getComponentDescriptor(java.lang.String componentKey)
           
 java.util.List getComponentDescriptorList(java.lang.String role)
           
 java.util.Map getComponentDescriptorMap(java.lang.String role)
           
 org.codehaus.classworlds.ClassRealm getContainerRealm()
           
 Context getContext()
           
 java.util.Date getCreationDate()
           
 Logger getLogger()
          Deprecated.  
 LoggerManager getLoggerManager()
           
 java.lang.String getName()
           
 boolean hasChildContainer(java.lang.String name)
           
 boolean hasComponent(java.lang.String componentKey)
           
 boolean hasComponent(java.lang.String role, java.lang.String roleHint)
           
 void initialize()
           
 boolean isReloadingEnabled()
           
 java.lang.Object lookup(java.lang.String componentKey)
           
 java.lang.Object lookup(java.lang.String role, java.lang.String roleHint)
           
 java.util.List lookupList(java.lang.String role)
           
 java.util.Map lookupMap(java.lang.String role)
           
 void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
           
 void release(java.lang.Object component)
           
 void releaseAll(java.util.List components)
           
 void releaseAll(java.util.Map components)
           
 void removeChildContainer(java.lang.String name)
           
 void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
           
 void resume(java.lang.Object component)
           
 void setConfigurationResource(java.io.Reader configuration)
           
 void setReloadingEnabled(boolean reloadingEnabled)
           
 void start()
           
 void suspend(java.lang.Object component)
           
 

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

getName

java.lang.String getName()

getCreationDate

java.util.Date getCreationDate()

hasChildContainer

boolean hasChildContainer(java.lang.String name)

removeChildContainer

void removeChildContainer(java.lang.String name)

getChildContainer

PlexusContainer getChildContainer(java.lang.String name)

createChildContainer

PlexusContainer createChildContainer(java.lang.String name,
                                     java.util.List classpathJars,
                                     java.util.Map context)
                                     throws PlexusContainerException
Throws:
PlexusContainerException

createChildContainer

PlexusContainer createChildContainer(java.lang.String name,
                                     java.util.List classpathJars,
                                     java.util.Map context,
                                     java.util.List discoveryListeners)
                                     throws PlexusContainerException
Throws:
PlexusContainerException

lookup

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

lookup

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

lookupMap

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

lookupList

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

getComponentDescriptor

ComponentDescriptor getComponentDescriptor(java.lang.String componentKey)

getComponentDescriptorMap

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

getComponentDescriptorList

java.util.List getComponentDescriptorList(java.lang.String role)

addComponentDescriptor

void addComponentDescriptor(ComponentDescriptor componentDescriptor)
                            throws ComponentRepositoryException
Throws:
ComponentRepositoryException

release

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

releaseAll

void releaseAll(java.util.Map components)
                throws ComponentLifecycleException
Throws:
ComponentLifecycleException

releaseAll

void releaseAll(java.util.List components)
                throws ComponentLifecycleException
Throws:
ComponentLifecycleException

hasComponent

boolean hasComponent(java.lang.String componentKey)

hasComponent

boolean hasComponent(java.lang.String role,
                     java.lang.String roleHint)

suspend

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

resume

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

initialize

void initialize()
                throws PlexusContainerException
Throws:
PlexusContainerException

start

void start()
           throws PlexusContainerException
Throws:
PlexusContainerException

dispose

void dispose()

getContext

Context getContext()

getContainerRealm

org.codehaus.classworlds.ClassRealm getContainerRealm()

addContextValue

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

setConfigurationResource

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

registerComponentDiscoveryListener

void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)

removeComponentDiscoveryListener

void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)

addJarRepository

void addJarRepository(java.io.File repository)

addJarResource

void addJarResource(java.io.File resource)
                    throws PlexusContainerException
Throws:
PlexusContainerException

autowire

java.lang.Object autowire(java.lang.Object component)
                          throws CompositionException
Throws:
CompositionException

createAndAutowire

java.lang.Object createAndAutowire(java.lang.String clazz)
                                   throws CompositionException,
                                          java.lang.ClassNotFoundException,
                                          java.lang.InstantiationException,
                                          java.lang.IllegalAccessException
Throws:
CompositionException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

setReloadingEnabled

void setReloadingEnabled(boolean reloadingEnabled)

isReloadingEnabled

boolean isReloadingEnabled()

getLoggerManager

LoggerManager getLoggerManager()

getLogger

Logger getLogger()
Deprecated. 



Copyright © 2001-2006 Codehaus. All Rights Reserved.