public interface PlexusContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLE |
Modifier and Type | Method and Description |
---|---|
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) |
org.codehaus.plexus.classworlds.realm.ClassRealm |
createComponentRealm(java.lang.String id,
java.util.List jars) |
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.plexus.classworlds.realm.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) |
boolean |
isReloadingEnabled() |
java.lang.Object |
lookup(java.lang.Class componentClass) |
java.lang.Object |
lookup(java.lang.Class role,
java.lang.String roleHint) |
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.Class role) |
java.util.List |
lookupList(java.lang.String role) |
java.util.Map |
lookupMap(java.lang.Class 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 |
setLoggerManager(LoggerManager loggerManager) |
void |
setName(java.lang.String name) |
void |
setParentPlexusContainer(PlexusContainer container) |
void |
setReloadingEnabled(boolean reloadingEnabled) |
void |
suspend(java.lang.Object component) |
java.lang.String getName()
java.util.Date getCreationDate()
boolean hasChildContainer(java.lang.String name)
void removeChildContainer(java.lang.String name)
PlexusContainer getChildContainer(java.lang.String name)
java.lang.Object lookup(java.lang.String componentKey) throws ComponentLookupException
ComponentLookupException
java.lang.Object lookup(java.lang.String role, java.lang.String roleHint) throws ComponentLookupException
ComponentLookupException
java.util.Map lookupMap(java.lang.String role) throws ComponentLookupException
ComponentLookupException
java.util.List lookupList(java.lang.String role) throws ComponentLookupException
ComponentLookupException
java.lang.Object lookup(java.lang.Class componentClass) throws ComponentLookupException
ComponentLookupException
java.lang.Object lookup(java.lang.Class role, java.lang.String roleHint) throws ComponentLookupException
ComponentLookupException
java.util.Map lookupMap(java.lang.Class role) throws ComponentLookupException
ComponentLookupException
java.util.List lookupList(java.lang.Class role) throws ComponentLookupException
ComponentLookupException
ComponentDescriptor getComponentDescriptor(java.lang.String componentKey)
java.util.Map getComponentDescriptorMap(java.lang.String role)
java.util.List getComponentDescriptorList(java.lang.String role)
void addComponentDescriptor(ComponentDescriptor componentDescriptor) throws ComponentRepositoryException
ComponentRepositoryException
void release(java.lang.Object component) throws ComponentLifecycleException
ComponentLifecycleException
void releaseAll(java.util.Map components) throws ComponentLifecycleException
ComponentLifecycleException
void releaseAll(java.util.List components) throws ComponentLifecycleException
ComponentLifecycleException
boolean hasComponent(java.lang.String componentKey)
boolean hasComponent(java.lang.String role, java.lang.String roleHint)
void suspend(java.lang.Object component) throws ComponentLifecycleException
ComponentLifecycleException
void resume(java.lang.Object component) throws ComponentLifecycleException
ComponentLifecycleException
void dispose()
void addContextValue(java.lang.Object key, java.lang.Object value)
Context getContext()
org.codehaus.plexus.classworlds.realm.ClassRealm getContainerRealm()
void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
void addJarRepository(java.io.File repository)
void addJarResource(java.io.File resource) throws PlexusContainerException
PlexusContainerException
java.lang.Object autowire(java.lang.Object component) throws CompositionException
CompositionException
java.lang.Object createAndAutowire(java.lang.String clazz) throws CompositionException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
CompositionException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
void setReloadingEnabled(boolean reloadingEnabled)
boolean isReloadingEnabled()
void setLoggerManager(LoggerManager loggerManager)
LoggerManager getLoggerManager()
Logger getLogger()
void setName(java.lang.String name)
void setParentPlexusContainer(PlexusContainer container)
PlexusContainer createChildContainer(java.lang.String name, java.util.List classpathJars, java.util.Map context) throws PlexusContainerException
PlexusContainerException
PlexusContainer createChildContainer(java.lang.String name, java.util.List classpathJars, java.util.Map context, java.util.List discoveryListeners) throws PlexusContainerException
PlexusContainerException
org.codehaus.plexus.classworlds.realm.ClassRealm createComponentRealm(java.lang.String id, java.util.List jars) throws PlexusContainerException
PlexusContainerException