public class DefaultPlexusContainer extends AbstractLogEnabled implements PlexusContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOTSTRAP_CONFIGURATION |
protected PlexusConfiguration |
configuration |
ROLE| Constructor and Description |
|---|
DefaultPlexusContainer() |
enableLogging, setupLogger, setupLogger, setupLoggerprotected PlexusConfiguration configuration
public static final String BOOTSTRAP_CONFIGURATION
public Date getCreationDate()
getCreationDate in interface PlexusContainerpublic boolean hasChildContainer(String name)
hasChildContainer in interface PlexusContainerpublic void removeChildContainer(String name)
removeChildContainer in interface PlexusContainerpublic PlexusContainer getChildContainer(String name)
getChildContainer in interface PlexusContainerpublic PlexusContainer createChildContainer(String name, List classpathJars, Map context) throws PlexusContainerException
createChildContainer in interface PlexusContainerPlexusContainerExceptionpublic PlexusContainer createChildContainer(String name, List classpathJars, Map context, List discoveryListeners) throws PlexusContainerException
createChildContainer in interface PlexusContainerPlexusContainerExceptionpublic Object lookup(String componentKey) throws ComponentLookupException
lookup in interface PlexusContainerComponentLookupExceptionpublic Map lookupMap(String role) throws ComponentLookupException
lookupMap in interface PlexusContainerComponentLookupExceptionpublic List lookupList(String role) throws ComponentLookupException
lookupList in interface PlexusContainerComponentLookupExceptionpublic Object lookup(String role, String roleHint) throws ComponentLookupException
lookup in interface PlexusContainerComponentLookupExceptionpublic ComponentDescriptor getComponentDescriptor(String componentKey)
getComponentDescriptor in interface PlexusContainerpublic Map getComponentDescriptorMap(String role)
getComponentDescriptorMap in interface PlexusContainerpublic List getComponentDescriptorList(String role)
getComponentDescriptorList in interface PlexusContainerpublic void addComponentDescriptor(ComponentDescriptor componentDescriptor) throws ComponentRepositoryException
addComponentDescriptor in interface PlexusContainerComponentRepositoryExceptionpublic void release(Object component) throws ComponentLifecycleException
release in interface PlexusContainerComponentLifecycleExceptionpublic void releaseAll(Map components) throws ComponentLifecycleException
releaseAll in interface PlexusContainerComponentLifecycleExceptionpublic void releaseAll(List components) throws ComponentLifecycleException
releaseAll in interface PlexusContainerComponentLifecycleExceptionpublic boolean hasComponent(String componentKey)
hasComponent in interface PlexusContainerpublic boolean hasComponent(String role, String roleHint)
hasComponent in interface PlexusContainerpublic void suspend(Object component) throws ComponentLifecycleException
suspend in interface PlexusContainerComponentLifecycleExceptionpublic void resume(Object component) throws ComponentLifecycleException
resume in interface PlexusContainerComponentLifecycleExceptionpublic ClassRealm getComponentRealm(String id)
getComponentRealm in interface PlexusContainerpublic boolean isInitialized()
isInitialized in interface PlexusContainerpublic void initialize()
throws PlexusContainerException
initialize in interface PlexusContainerPlexusContainerExceptionpublic void registerComponentDiscoveryListeners()
throws ComponentLookupException
ComponentLookupExceptionpublic List discoverComponents(ClassRealm classRealm) throws PlexusConfigurationException, ComponentRepositoryException
public boolean isStarted()
isStarted in interface PlexusContainerpublic void start()
throws PlexusContainerException
start in interface PlexusContainerPlexusContainerExceptionpublic void dispose()
dispose in interface PlexusContainerprotected void disposeAllComponents()
public void setParentPlexusContainer(PlexusContainer parentContainer)
setParentPlexusContainer in interface PlexusContainerpublic void addContextValue(Object key, Object value)
addContextValue in interface PlexusContainerpublic void setConfigurationResource(Reader configuration) throws PlexusConfigurationResourceException
setConfigurationResource in interface PlexusContainerPlexusConfigurationResourceExceptionPlexusContainer.setConfigurationResource(Reader)protected void loadComponentsOnStart()
throws PlexusConfigurationException,
ComponentLookupException
public String getName()
public void setName(String name)
public ClassWorld getClassWorld()
public void setClassWorld(ClassWorld classWorld)
public ClassRealm getCoreRealm()
public void setCoreRealm(ClassRealm coreRealm)
public ClassRealm getContainerRealm()
getContainerRealm in interface PlexusContainerprotected void initializeName()
public Context getContext()
getContext in interface PlexusContainerprotected void initializeConfiguration()
throws ConfigurationProcessingException,
ConfigurationResourceNotFoundException,
PlexusConfigurationException
protected Reader getInterpolationConfigurationReader(Reader reader)
public void initializeResources()
throws PlexusConfigurationException
PlexusConfigurationExceptionpublic void addJarResource(File jar) throws PlexusContainerException
addJarResource in interface PlexusContainerPlexusContainerExceptionpublic void addJarRepository(File repository)
addJarRepository in interface PlexusContainerpublic Logger getLogger()
getLogger in interface PlexusContainergetLogger in class AbstractLogEnabledpublic Object createComponentInstance(ComponentDescriptor componentDescriptor) throws ComponentInstantiationException, ComponentLifecycleException
createComponentInstance in interface PlexusContainerComponentInstantiationExceptionComponentLifecycleExceptionpublic void composeComponent(Object component, ComponentDescriptor componentDescriptor) throws CompositionException, UndefinedComponentComposerException
composeComponent in interface PlexusContainerCompositionExceptionUndefinedComponentComposerExceptionpublic void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
registerComponentDiscoveryListener in interface PlexusContainerpublic void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
removeComponentDiscoveryListener in interface PlexusContainerpublic void setLoggerManager(LoggerManager loggerManager)
setLoggerManager in interface PlexusContainerpublic LoggerManager getLoggerManager()
getLoggerManager in interface PlexusContainer