org.codehaus.plexus
Interface PlexusContainer


public interface PlexusContainer


Field Summary
static String ROLE
           
 
Method Summary
 void addComponentDescriptor(ComponentDescriptor componentDescriptor)
           
 void addContextValue(Object key, Object value)
           
 void addJarRepository(File repository)
           
 void addJarResource(File resource)
           
 Object autowire(Object component)
           
 Object createAndAutowire(String clazz)
           
 PlexusContainer createChildContainer(String name, List classpathJars, Map context)
           
 PlexusContainer createChildContainer(String name, List classpathJars, Map context, List discoveryListeners)
           
 org.codehaus.plexus.classworlds.realm.ClassRealm createComponentRealm(String id, List jars)
           
 void dispose()
           
 PlexusContainer getChildContainer(String name)
           
 ComponentDescriptor getComponentDescriptor(String componentKey)
           
 List getComponentDescriptorList(String role)
           
 Map getComponentDescriptorMap(String role)
           
 org.codehaus.plexus.classworlds.realm.ClassRealm getContainerRealm()
           
 Context getContext()
           
 Date getCreationDate()
           
 Logger getLogger()
          Deprecated.  
 LoggerManager getLoggerManager()
           
 String getName()
           
 boolean hasChildContainer(String name)
           
 boolean hasComponent(String componentKey)
           
 boolean hasComponent(String role, String roleHint)
           
 boolean isReloadingEnabled()
           
 Object lookup(Class componentClass)
           
 Object lookup(Class role, String roleHint)
           
 Object lookup(String componentKey)
           
 Object lookup(String role, String roleHint)
           
 List lookupList(Class role)
           
 List lookupList(String role)
           
 Map lookupMap(Class role)
           
 Map lookupMap(String role)
           
 void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
           
 void release(Object component)
           
 void releaseAll(List components)
           
 void releaseAll(Map components)
           
 void removeChildContainer(String name)
           
 void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
           
 void resume(Object component)
           
 void setLoggerManager(LoggerManager loggerManager)
           
 void setName(String name)
           
 void setParentPlexusContainer(PlexusContainer container)
           
 void setReloadingEnabled(boolean reloadingEnabled)
           
 void suspend(Object component)
           
 

Field Detail

ROLE

static final String ROLE
Method Detail

getName

String getName()

getCreationDate

Date getCreationDate()

hasChildContainer

boolean hasChildContainer(String name)

removeChildContainer

void removeChildContainer(String name)

getChildContainer

PlexusContainer getChildContainer(String name)

lookup

Object lookup(String componentKey)
              throws ComponentLookupException
Throws:
ComponentLookupException

lookup

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

lookupMap

Map lookupMap(String role)
              throws ComponentLookupException
Throws:
ComponentLookupException

lookupList

List lookupList(String role)
                throws ComponentLookupException
Throws:
ComponentLookupException

lookup

Object lookup(Class componentClass)
              throws ComponentLookupException
Throws:
ComponentLookupException

lookup

Object lookup(Class role,
              String roleHint)
              throws ComponentLookupException
Throws:
ComponentLookupException

lookupMap

Map lookupMap(Class role)
              throws ComponentLookupException
Throws:
ComponentLookupException

lookupList

List lookupList(Class role)
                throws ComponentLookupException
Throws:
ComponentLookupException

getComponentDescriptor

ComponentDescriptor getComponentDescriptor(String componentKey)

getComponentDescriptorMap

Map getComponentDescriptorMap(String role)

getComponentDescriptorList

List getComponentDescriptorList(String role)

addComponentDescriptor

void addComponentDescriptor(ComponentDescriptor componentDescriptor)
                            throws ComponentRepositoryException
Throws:
ComponentRepositoryException

release

void release(Object component)
             throws ComponentLifecycleException
Throws:
ComponentLifecycleException

releaseAll

void releaseAll(Map components)
                throws ComponentLifecycleException
Throws:
ComponentLifecycleException

releaseAll

void releaseAll(List components)
                throws ComponentLifecycleException
Throws:
ComponentLifecycleException

hasComponent

boolean hasComponent(String componentKey)

hasComponent

boolean hasComponent(String role,
                     String roleHint)

suspend

void suspend(Object component)
             throws ComponentLifecycleException
Throws:
ComponentLifecycleException

resume

void resume(Object component)
            throws ComponentLifecycleException
Throws:
ComponentLifecycleException

dispose

void dispose()

addContextValue

void addContextValue(Object key,
                     Object value)

getContext

Context getContext()

getContainerRealm

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

registerComponentDiscoveryListener

void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)

removeComponentDiscoveryListener

void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)

addJarRepository

void addJarRepository(File repository)

addJarResource

void addJarResource(File resource)
                    throws PlexusContainerException
Throws:
PlexusContainerException

autowire

Object autowire(Object component)
                throws CompositionException
Throws:
CompositionException

createAndAutowire

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

setReloadingEnabled

void setReloadingEnabled(boolean reloadingEnabled)

isReloadingEnabled

boolean isReloadingEnabled()

setLoggerManager

void setLoggerManager(LoggerManager loggerManager)

getLoggerManager

LoggerManager getLoggerManager()

getLogger

Logger getLogger()
Deprecated. 


setName

void setName(String name)

setParentPlexusContainer

void setParentPlexusContainer(PlexusContainer container)

createChildContainer

PlexusContainer createChildContainer(String name,
                                     List classpathJars,
                                     Map context)
                                     throws PlexusContainerException
Throws:
PlexusContainerException

createChildContainer

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

createComponentRealm

org.codehaus.plexus.classworlds.realm.ClassRealm createComponentRealm(String id,
                                                                      List jars)
                                                                      throws PlexusContainerException
Throws:
PlexusContainerException


Copyright © 2001-2011 Codehaus. All Rights Reserved.