public interface PlexusContainer
static final String ROLE
String getName()
Date getCreationDate()
boolean hasChildContainer(String name)
void removeChildContainer(String name)
PlexusContainer getChildContainer(String name)
Object lookup(String componentKey) throws ComponentLookupException
ComponentLookupException
Object lookup(String role, String roleHint) throws ComponentLookupException
ComponentLookupException
Map lookupMap(String role) throws ComponentLookupException
ComponentLookupException
List lookupList(String role) throws ComponentLookupException
ComponentLookupException
Object lookup(Class componentClass) throws ComponentLookupException
ComponentLookupException
Object lookup(Class role, String roleHint) throws ComponentLookupException
ComponentLookupException
Map lookupMap(Class role) throws ComponentLookupException
ComponentLookupException
List lookupList(Class role) throws ComponentLookupException
ComponentLookupException
ComponentDescriptor getComponentDescriptor(String componentKey)
void addComponentDescriptor(ComponentDescriptor componentDescriptor) throws ComponentRepositoryException
ComponentRepositoryException
void release(Object component) throws ComponentLifecycleException
ComponentLifecycleException
void releaseAll(Map components) throws ComponentLifecycleException
ComponentLifecycleException
void releaseAll(List components) throws ComponentLifecycleException
ComponentLifecycleException
boolean hasComponent(String componentKey)
void suspend(Object component) throws ComponentLifecycleException
ComponentLifecycleException
void resume(Object component) throws ComponentLifecycleException
ComponentLifecycleException
void dispose()
Context getContext()
org.codehaus.plexus.classworlds.realm.ClassRealm getContainerRealm()
void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
void addJarRepository(File repository)
void addJarResource(File resource) throws PlexusContainerException
PlexusContainerException
Object autowire(Object component) throws CompositionException
CompositionException
Object createAndAutowire(String clazz) throws CompositionException, ClassNotFoundException, InstantiationException, IllegalAccessException
void setReloadingEnabled(boolean reloadingEnabled)
boolean isReloadingEnabled()
void setLoggerManager(LoggerManager loggerManager)
LoggerManager getLoggerManager()
Logger getLogger()
void setName(String name)
void setParentPlexusContainer(PlexusContainer container)
PlexusContainer createChildContainer(String name, List classpathJars, Map context) throws PlexusContainerException
PlexusContainerException
PlexusContainer createChildContainer(String name, List classpathJars, Map context, List discoveryListeners) throws PlexusContainerException
PlexusContainerException
org.codehaus.plexus.classworlds.realm.ClassRealm createComponentRealm(String id, List jars) throws PlexusContainerException
PlexusContainerException
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.