org.codehaus.plexus
Interface PlexusContainer
- All Known Subinterfaces:
- MutablePlexusContainer
- All Known Implementing Classes:
- DefaultPlexusContainer
public interface PlexusContainer
Field Summary |
static java.lang.String |
ROLE
|
ROLE
static final java.lang.String ROLE
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.