Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.DefaultPlexusContainer
Field Summary | |
static String | |
private Map | |
private ClassWorld | |
private ComponentComposerManager | |
private ComponentDiscovererManager | |
private ComponentFactoryManager | |
private ComponentManagerManager | |
private ComponentRepository | |
protected PlexusConfiguration | |
private Reader | |
private DefaultContext | |
private ClassRealm | |
private Date | |
private boolean | |
private LifecycleHandlerManager | |
private LoggerManager | |
private String | |
private PlexusContainer | |
private ClassRealm | |
private boolean |
Fields inherited from class org.codehaus.plexus.logging.AbstractLogEnabled | |
logger |
Fields inherited from interface org.codehaus.plexus.PlexusContainer | |
ROLE |
Constructor Summary | |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
PlexusContainer |
|
PlexusContainer |
|
Object |
|
private ComponentManager |
|
List |
|
void |
|
protected void | |
PlexusContainer |
|
ClassWorld | |
ComponentDescriptor |
|
List |
|
Map |
|
ClassRealm |
|
ClassRealm | |
Context | |
ClassRealm | |
Date | |
protected Reader |
|
Logger | |
LoggerManager | |
String |
|
boolean |
|
boolean |
|
boolean |
|
void | |
private void | |
protected void | |
private void | |
private void | |
private void | |
protected void |
|
void | |
private void | |
boolean | |
boolean | |
protected void | |
Object |
|
Object |
|
List |
|
Map |
|
private void |
|
private void |
|
void | |
void | |
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled | |
enableLogging , getLogger , setupLogger , setupLogger , setupLogger |
public static final String BOOTSTRAP_CONFIGURATION
private Map childContainers
private ClassWorld classWorld
private Reader configurationReader
private ClassRealm coreRealm
private final Date creationDate
private boolean initialized
private String name
private ClassRealm plexusRealm
private boolean started
public void addComponentDescriptor(ComponentDescriptor componentDescriptor) throws ComponentRepositoryException
- Specified by:
- addComponentDescriptor in interface PlexusContainer
public void addContextValue(Object key, Object value)
- Specified by:
- addContextValue in interface PlexusContainer
public void addJarRepository(File repository)
- Specified by:
- addJarRepository in interface PlexusContainer
public void addJarResource(File jar) throws PlexusContainerException
- Specified by:
- addJarResource in interface PlexusContainer
public void composeComponent(Object component, ComponentDescriptor componentDescriptor) throws CompositionException, UndefinedComponentComposerException
- Specified by:
- composeComponent in interface PlexusContainer
public PlexusContainer createChildContainer(String name, List classpathJars, Map context) throws PlexusContainerException
- Specified by:
- createChildContainer in interface PlexusContainer
public PlexusContainer createChildContainer(String name, List classpathJars, Map context, List discoveryListeners) throws PlexusContainerException
- Specified by:
- createChildContainer in interface PlexusContainer
public Object createComponentInstance(ComponentDescriptor componentDescriptor) throws ComponentInstantiationException, ComponentLifecycleException
- Specified by:
- createComponentInstance in interface PlexusContainer
private ComponentManager createComponentManager(ComponentDescriptor descriptor) throws ComponentLookupException
public List discoverComponents(ClassRealm classRealm) throws PlexusConfigurationException, ComponentRepositoryException
TODO: Enhance the ComponentRepository so that it can take entire ComponentSetDescriptors instead of just ComponentDescriptors.
protected void disposeAllComponents()
public PlexusContainer getChildContainer(String name)
- Specified by:
- getChildContainer in interface PlexusContainer
public ClassWorld getClassWorld()
public ComponentDescriptor getComponentDescriptor(String componentKey)
- Specified by:
- getComponentDescriptor in interface PlexusContainer
public List getComponentDescriptorList(String role)
- Specified by:
- getComponentDescriptorList in interface PlexusContainer
public Map getComponentDescriptorMap(String role)
- Specified by:
- getComponentDescriptorMap in interface PlexusContainer
public ClassRealm getComponentRealm(String id)
Deprecated. Use getContainerRealm() instead.
- Specified by:
- getComponentRealm in interface PlexusContainer
public ClassRealm getContainerRealm()
- Specified by:
- getContainerRealm in interface PlexusContainer
public ClassRealm getCoreRealm()
public Date getCreationDate()
- Specified by:
- getCreationDate in interface PlexusContainer
protected Reader getInterpolationConfigurationReader(Reader reader)
public Logger getLogger()
- Specified by:
- getLogger in interface PlexusContainer
- Overrides:
- getLogger in interface AbstractLogEnabled
public LoggerManager getLoggerManager()
- Specified by:
- getLoggerManager in interface PlexusContainer
public String getName()
public boolean hasChildContainer(String name)
- Specified by:
- hasChildContainer in interface PlexusContainer
public boolean hasComponent(String componentKey)
- Specified by:
- hasComponent in interface PlexusContainer
public boolean hasComponent(String role, String roleHint)
- Specified by:
- hasComponent in interface PlexusContainer
public void initialize() throws PlexusContainerException
- Specified by:
- initialize in interface PlexusContainer
private void initializeClassWorlds() throws DuplicateRealmException
protected void initializeConfiguration() throws ConfigurationProcessingException, ConfigurationResourceNotFoundException, PlexusConfigurationException
private void initializeContext()
private void initializeCoreComponents() throws ComponentConfigurationException, ComponentRepositoryException, ContextException
protected void initializeName()
Create a name for our application if one doesn't exist.
private void initializeSystemProperties() throws PlexusConfigurationException
protected void loadComponentsOnStart() throws PlexusConfigurationException, ComponentLookupException
public Object lookup(String componentKey) throws ComponentLookupException
- Specified by:
- lookup in interface PlexusContainer
public Object lookup(String role, String roleHint) throws ComponentLookupException
- Specified by:
- lookup in interface PlexusContainer
public List lookupList(String role) throws ComponentLookupException
- Specified by:
- lookupList in interface PlexusContainer
public Map lookupMap(String role) throws ComponentLookupException
- Specified by:
- lookupMap in interface PlexusContainer
private void processConfigurationsDirectory() throws PlexusConfigurationException
Process any additional component configuration files that have been specified. The specified directory is scanned recursively so configurations can be within nested directories to help with component organization.
private void processCoreComponentConfiguration(String role, BasicComponentConfigurator configurator, PlexusConfiguration c) throws ComponentConfigurationException
public void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
- Specified by:
- registerComponentDiscoveryListener in interface PlexusContainer
public void registerComponentDiscoveryListeners() throws ComponentLookupException
public void release(Object component) throws ComponentLifecycleException
- Specified by:
- release in interface PlexusContainer
public void releaseAll(List components) throws ComponentLifecycleException
- Specified by:
- releaseAll in interface PlexusContainer
public void releaseAll(Map components) throws ComponentLifecycleException
- Specified by:
- releaseAll in interface PlexusContainer
public void removeChildContainer(String name)
- Specified by:
- removeChildContainer in interface PlexusContainer
public void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
- Specified by:
- removeComponentDiscoveryListener in interface PlexusContainer
public void resume(Object component) throws ComponentLifecycleException
- Specified by:
- resume in interface PlexusContainer
public void setClassWorld(ClassWorld classWorld)
public void setConfigurationResource(Reader configuration) throws PlexusConfigurationResourceException
- Specified by:
- setConfigurationResource in interface PlexusContainer
public void setCoreRealm(ClassRealm coreRealm)
public void setLoggerManager(LoggerManager loggerManager)
- Specified by:
- setLoggerManager in interface PlexusContainer
public void setName(String name)
public void setParentPlexusContainer(PlexusContainer parentContainer)
- Specified by:
- setParentPlexusContainer in interface PlexusContainer
public void start() throws PlexusContainerException
- Specified by:
- start in interface PlexusContainer
public void suspend(Object component) throws ComponentLifecycleException
- Specified by:
- suspend in interface PlexusContainer