|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.DefaultPlexusContainer
public class DefaultPlexusContainer
Default implementation of PlexusContainer and MutablePlexusContainer.
Field Summary | |
---|---|
protected org.codehaus.plexus.classworlds.ClassWorld |
classWorld
|
protected ComponentDiscovererManager |
componentDiscovererManager
Simple index (registry) of ComponentDiscovers and ComponentDiscoveryListener. |
protected ComponentFactoryManager |
componentFactoryManager
Trivial class to look-up ComponentFactory instances in this container. |
protected ComponentLookupManager |
componentLookupManager
Encapsulates the algorithm for finding components by role, roleHint, and classRealm. |
protected ComponentManagerManager |
componentManagerManager
The main component registry. |
protected ComponentRepository |
componentRepository
A repository of component descriptions which are used to create new components and for tooling. |
protected PlexusConfiguration |
configuration
|
protected java.io.Reader |
configurationReader
|
protected ConfigurationSource |
configurationSource
Converts a ComponentDescriptor into PlexusConfiguration. |
protected Context |
containerContext
Arbitrary data associated with the container. |
protected org.codehaus.plexus.classworlds.realm.ClassRealm |
containerRealm
|
protected java.util.Date |
creationDate
|
protected static java.lang.String |
DEFAULT_CONTAINER_NAME
|
protected static java.lang.String |
DEFAULT_REALM_NAME
|
protected LifecycleHandlerManager |
lifecycleHandlerManager
Simple index (registry) of LifecycleHandler instances. |
protected LoggerManager |
loggerManager
Generic logger interface. |
protected java.lang.String |
name
Container's name |
Fields inherited from interface org.codehaus.plexus.PlexusContainer |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultPlexusContainer()
|
|
DefaultPlexusContainer(ContainerConfiguration c)
|
Method Summary | |
---|---|
void |
addComponent(java.lang.Object component,
java.lang.String role)
|
void |
addComponentDescriptor(ComponentDescriptor componentDescriptor)
Adds a component descriptor to this container. |
void |
addContextValue(java.lang.Object key,
java.lang.Object value)
Add a key/value pair to this container's Context. |
void |
addJarRepository(java.io.File repository)
Adds a directory of jar resources. |
void |
addJarResource(java.io.File jar)
Adds a jar to this container's ClassRealm - whose components are then discovered (via the various registered ComponentDiscoverer's). |
org.codehaus.plexus.classworlds.realm.ClassRealm |
createComponentRealm(java.lang.String id,
java.util.List<java.io.File> jars)
Creates and returns a new class realm under this container's realm for the given list of jars. |
java.util.List |
discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
|
java.util.List<ComponentDescriptor> |
discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm,
boolean override)
Discovers components in the given realm. |
void |
dispose()
Disposes of this container, which in turn disposes all of it's components. |
protected void |
disposeAllComponents()
|
org.codehaus.plexus.classworlds.ClassWorld |
getClassWorld()
|
ComponentDescriptor |
getComponentDescriptor(java.lang.String role)
Returns the ComponentDescriptor with the given component role and the default role hint. |
ComponentDescriptor |
getComponentDescriptor(java.lang.String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Returns the ComponentDescriptor with the given component role and the default role hint. |
ComponentDescriptor |
getComponentDescriptor(java.lang.String role,
java.lang.String hint)
Returns the ComponentDescriptor with the given component role and hint. |
ComponentDescriptor |
getComponentDescriptor(java.lang.String role,
java.lang.String hint,
org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
Returns the ComponentDescriptor with the given component role and hint. |
java.util.List<ComponentDescriptor> |
getComponentDescriptorList(java.lang.String role)
Returns a List of ComponentDescriptors with the given role. |
java.util.List<ComponentDescriptor> |
getComponentDescriptorList(java.lang.String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Returns a List of ComponentDescriptors with the given role. |
java.util.List<ComponentDescriptor> |
getComponentDescriptorList(java.lang.String role,
java.util.List<java.lang.String> roleHints,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Returns a List of ComponentDescriptors with the given role in a requested order driven by roleHints list. |
java.util.Map<java.lang.String,ComponentDescriptor> |
getComponentDescriptorMap(java.lang.String role)
Returns a Map of ComponentDescriptors with the given role, keyed by role-hint. |
java.util.Map<java.lang.String,ComponentDescriptor> |
getComponentDescriptorMap(java.lang.String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Returns a Map of ComponentDescriptors with the given role, keyed by role-hint. |
ComponentDiscovererManager |
getComponentDiscovererManager()
|
ComponentFactoryManager |
getComponentFactoryManager()
|
ComponentLookupManager |
getComponentLookupManager()
|
ComponentManagerManager |
getComponentManagerManager()
|
org.codehaus.plexus.classworlds.realm.ClassRealm |
getComponentRealm(java.lang.String realmId)
|
ComponentRepository |
getComponentRepository()
|
PlexusConfiguration |
getConfiguration()
|
ConfigurationSource |
getConfigurationSource()
|
org.codehaus.plexus.classworlds.realm.ClassRealm |
getContainerRealm()
Returns the Classworld's ClassRealm of this Container, which acts as the default parent for all contained components. |
Context |
getContext()
Returns this container's context. |
java.util.Date |
getCreationDate()
Returns the date this container was created. |
protected java.io.Reader |
getInterpolationConfigurationReader(java.io.Reader reader)
|
LifecycleHandlerManager |
getLifecycleHandlerManager()
|
Logger |
getLogger()
|
LoggerManager |
getLoggerManager()
|
org.codehaus.plexus.classworlds.realm.ClassRealm |
getLookupRealm()
Returns the lookup realm for this container, which is either the container realm or the realm set by PlexusContainer.setLookupRealm(ClassRealm) . |
org.codehaus.plexus.classworlds.realm.ClassRealm |
getLookupRealm(java.lang.Object component)
Utility method to get a default lookup realm for a component. |
java.lang.String |
getName()
Returns the unique name of this container. |
boolean |
hasComponent(java.lang.String componentKey)
Returns true if this container has the keyed component. |
boolean |
hasComponent(java.lang.String componentKey,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
|
boolean |
hasComponent(java.lang.String role,
java.lang.String roleHint)
Returns true if this container has a component with the given role/role-hint. |
boolean |
hasComponent(java.lang.String role,
java.lang.String roleHint,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
|
protected void |
initialize(ContainerConfiguration containerConfiguration)
|
protected void |
initializeConfiguration(ContainerConfiguration c)
|
protected void |
initializePhases(ContainerConfiguration containerConfiguration)
|
boolean |
isDevMode()
|
java.lang.Object |
lookup(java.lang.Class role)
Looks up and returns a component object with the given unique key or role. |
java.lang.Object |
lookup(java.lang.Class role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a component object with the given unique key or role. |
java.lang.Object |
lookup(java.lang.Class role,
java.lang.String roleHint)
Looks up and returns a component object with the given unique role/role-hint combination. |
java.lang.Object |
lookup(java.lang.Class role,
java.lang.String roleHint,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a component object with the given unique role/role-hint combination. |
java.lang.Object |
lookup(java.lang.String role)
Looks up and returns a component object with the given unique key or role. |
java.lang.Object |
lookup(java.lang.String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a component object with the given unique key or role. |
java.lang.Object |
lookup(java.lang.String role,
java.lang.String roleHint)
Looks up and returns a component object with the given unique role/role-hint combination. |
java.lang.Object |
lookup(java.lang.String role,
java.lang.String roleHint,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a component object with the given unique role/role-hint combination. |
java.util.List<java.lang.Object> |
lookupList(java.lang.Class role)
Looks up and returns a List of component objects with the given role. |
java.util.List<java.lang.Object> |
lookupList(java.lang.Class role,
java.util.List<java.lang.String> hints)
Looks up and returns a List of component objects with the given role. |
java.util.List<java.lang.Object> |
lookupList(java.lang.String role)
Looks up and returns a List of component objects with the given role. |
java.util.List<java.lang.Object> |
lookupList(java.lang.String role,
java.util.List<java.lang.String> hints)
Looks up and returns a List of component objects with the given role. |
java.util.Map<java.lang.String,java.lang.Object> |
lookupMap(java.lang.Class role)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
java.util.Map<java.lang.String,java.lang.Object> |
lookupMap(java.lang.Class role,
java.util.List<java.lang.String> hints)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
java.util.Map<java.lang.String,java.lang.Object> |
lookupMap(java.lang.String role)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
java.util.Map<java.lang.String,java.lang.Object> |
lookupMap(java.lang.String role,
java.util.List<java.lang.String> hints)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
void |
registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
Adds the listener to this container. |
void |
release(java.lang.Object component)
Releases the component from the container. |
void |
releaseAll(java.util.List<java.lang.Object> components)
Releases all Listed components from the container. |
void |
releaseAll(java.util.Map<java.lang.String,java.lang.Object> components)
Releases all Mapped component values from the container. |
void |
removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
Removes the listener from this container. |
void |
removeComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Dissociate the realm with the specified id from the container. |
void |
setClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld)
|
void |
setComponentDiscovererManager(ComponentDiscovererManager componentDiscovererManager)
|
void |
setComponentFactoryManager(ComponentFactoryManager componentFactoryManager)
|
void |
setComponentLookupManager(ComponentLookupManager componentLookupManager)
|
void |
setComponentManagerManager(ComponentManagerManager componentManagerManager)
|
void |
setComponentRepository(ComponentRepository componentRepository)
|
void |
setConfiguration(PlexusConfiguration configuration)
|
void |
setConfigurationSource(ConfigurationSource configurationSource)
|
void |
setContainerRealm(org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm)
|
void |
setLifecycleHandlerManager(LifecycleHandlerManager lifecycleHandlerManager)
|
void |
setLoggerManager(LoggerManager loggerManager)
|
org.codehaus.plexus.classworlds.realm.ClassRealm |
setLookupRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Sets the lookup realm to use for lookup calls that don't have a ClassRealm parameter. |
void |
setName(java.lang.String name)
|
protected void |
start()
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
---|
enableLogging, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String DEFAULT_CONTAINER_NAME
protected static final java.lang.String DEFAULT_REALM_NAME
protected java.lang.String name
protected Context containerContext
protected PlexusConfiguration configuration
protected java.io.Reader configurationReader
protected org.codehaus.plexus.classworlds.ClassWorld classWorld
protected org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm
protected ComponentRepository componentRepository
protected ComponentManagerManager componentManagerManager
protected LifecycleHandlerManager lifecycleHandlerManager
protected ComponentDiscovererManager componentDiscovererManager
protected ComponentFactoryManager componentFactoryManager
protected ComponentLookupManager componentLookupManager
protected LoggerManager loggerManager
protected ConfigurationSource configurationSource
protected final java.util.Date creationDate
Constructor Detail |
---|
public DefaultPlexusContainer() throws PlexusContainerException
PlexusContainerException
public DefaultPlexusContainer(ContainerConfiguration c) throws PlexusContainerException
PlexusContainerException
Method Detail |
---|
public void addComponent(java.lang.Object component, java.lang.String role) throws ComponentRepositoryException
addComponent
in interface PlexusContainer
ComponentRepositoryException
public org.codehaus.plexus.classworlds.realm.ClassRealm setLookupRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
setLookupRealm
in interface PlexusContainer
realm
- the new realm to use.
public org.codehaus.plexus.classworlds.realm.ClassRealm getLookupRealm()
PlexusContainer
PlexusContainer.setLookupRealm(ClassRealm)
.
getLookupRealm
in interface PlexusContainer
public org.codehaus.plexus.classworlds.realm.ClassRealm createComponentRealm(java.lang.String id, java.util.List<java.io.File> jars) throws PlexusContainerException
PlexusContainer
createComponentRealm
in interface PlexusContainer
id
- unique key for the ClassRealmjars
- list of JARs to place in the realm.
PlexusContainerException
PlexusContainer.addJarResource(File)
public java.lang.Object lookup(java.lang.String role) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
role
- a unique key for the desired component
ComponentLookupException
public java.lang.Object lookup(java.lang.String role, java.lang.String roleHint) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
role
- a non-unique key for the desired componentroleHint
- a hint for the desired component implementation
ComponentLookupException
public java.lang.Object lookup(java.lang.Class role) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
role
- a unique key for the desired component
ComponentLookupException
public java.lang.Object lookup(java.lang.Class role, java.lang.String roleHint) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
role
- a non-unique class key for the desired componentroleHint
- a hint for the desired component implementation
ComponentLookupException
public java.lang.Object lookup(java.lang.String role, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
role
- a unique key for the desired component
ComponentLookupException
public java.lang.Object lookup(java.lang.String role, java.lang.String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
role
- a non-unique key for the desired componentroleHint
- a hint for the desired component implementation
ComponentLookupException
public java.lang.Object lookup(java.lang.Class role, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
role
- a unique key for the desired component
ComponentLookupException
public java.lang.Object lookup(java.lang.Class role, java.lang.String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
role
- a non-unique class key for the desired componentroleHint
- a hint for the desired component implementation
ComponentLookupException
public java.util.Map<java.lang.String,java.lang.Object> lookupMap(java.lang.String role) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public java.util.Map<java.lang.String,java.lang.Object> lookupMap(java.lang.String role, java.util.List<java.lang.String> hints) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public java.util.Map<java.lang.String,java.lang.Object> lookupMap(java.lang.Class role) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public java.util.Map<java.lang.String,java.lang.Object> lookupMap(java.lang.Class role, java.util.List<java.lang.String> hints) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public java.util.List<java.lang.Object> lookupList(java.lang.String role) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public java.util.List<java.lang.Object> lookupList(java.lang.String role, java.util.List<java.lang.String> hints) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public java.util.List<java.lang.Object> lookupList(java.lang.Class role) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public java.util.List<java.lang.Object> lookupList(java.lang.Class role, java.util.List<java.lang.String> hints) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public java.util.Date getCreationDate()
PlexusContainer
getCreationDate
in interface PlexusContainer
public void setName(java.lang.String name)
setName
in interface PlexusContainer
public ComponentDescriptor getComponentDescriptor(java.lang.String role)
PlexusContainer
getComponentDescriptor
in interface PlexusContainer
role
- a unique role for the desired component's descriptor
public ComponentDescriptor getComponentDescriptor(java.lang.String role, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
getComponentDescriptor
in interface PlexusContainer
role
- a unique role for the desired component's descriptorrealm
- The class realm to search
public ComponentDescriptor getComponentDescriptor(java.lang.String role, java.lang.String hint)
PlexusContainer
getComponentDescriptor
in interface PlexusContainer
role
- a unique role for the desired component's descriptorhint
- a hint showing which implementation should be used
public ComponentDescriptor getComponentDescriptor(java.lang.String role, java.lang.String hint, org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
PlexusContainer
getComponentDescriptor
in interface PlexusContainer
role
- a unique role for the desired component's descriptorhint
- a hint showing which implementation should be usedclassRealm
- The class realm to search
public java.util.Map<java.lang.String,ComponentDescriptor> getComponentDescriptorMap(java.lang.String role)
PlexusContainer
getComponentDescriptorMap
in interface PlexusContainer
role
- a non-unique key for the desired components
public java.util.Map<java.lang.String,ComponentDescriptor> getComponentDescriptorMap(java.lang.String role, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
getComponentDescriptorMap
in interface PlexusContainer
role
- a non-unique key for the desired components
public java.util.List<ComponentDescriptor> getComponentDescriptorList(java.lang.String role)
PlexusContainer
getComponentDescriptorList
in interface PlexusContainer
role
- a non-unique key for the desired components
public java.util.List<ComponentDescriptor> getComponentDescriptorList(java.lang.String role, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
getComponentDescriptorList
in interface PlexusContainer
role
- a non-unique key for the desired components
public java.util.List<ComponentDescriptor> getComponentDescriptorList(java.lang.String role, java.util.List<java.lang.String> roleHints, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
getComponentDescriptorList
in interface PlexusContainer
role
- a non-unique key for the desired components
public void addComponentDescriptor(ComponentDescriptor componentDescriptor) throws ComponentRepositoryException
PlexusContainer
addComponentDescriptor
in interface PlexusContainer
ComponentRepositoryException
public void release(java.lang.Object component) throws ComponentLifecycleException
PlexusContainer
release
in interface PlexusContainer
component
- the plexus component object to release
ComponentLifecycleException
public void releaseAll(java.util.Map<java.lang.String,java.lang.Object> components) throws ComponentLifecycleException
PlexusContainer
releaseAll
in interface PlexusContainer
components
- Map of plexus component objects to release
ComponentLifecycleException
PlexusContainer.release( Object component )
public void releaseAll(java.util.List<java.lang.Object> components) throws ComponentLifecycleException
PlexusContainer
releaseAll
in interface PlexusContainer
components
- List of plexus component objects to release
ComponentLifecycleException
PlexusContainer.release( Object component )
public boolean hasComponent(java.lang.String componentKey)
PlexusContainer
hasComponent
in interface PlexusContainer
public boolean hasComponent(java.lang.String componentKey, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
public boolean hasComponent(java.lang.String role, java.lang.String roleHint)
PlexusContainer
hasComponent
in interface PlexusContainer
public boolean hasComponent(java.lang.String role, java.lang.String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
protected void initialize(ContainerConfiguration containerConfiguration) throws PlexusContainerException
PlexusContainerException
protected void initializePhases(ContainerConfiguration containerConfiguration) throws PlexusContainerException
PlexusContainerException
public java.util.List discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm) throws PlexusConfigurationException, ComponentRepositoryException
PlexusConfigurationException
ComponentRepositoryException
public java.util.List<ComponentDescriptor> discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm, boolean override) throws PlexusConfigurationException, ComponentRepositoryException
PlexusContainer
discoverComponents
in interface PlexusContainer
override
- wheter to override/merge any conflicting components, where the new component takes precedence.
PlexusConfigurationException
ComponentRepositoryException
PlexusContainer.discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm,boolean)
protected void start() throws PlexusContainerException
PlexusContainerException
public void dispose()
PlexusContainer
dispose
in interface PlexusContainer
protected void disposeAllComponents()
public void addContextValue(java.lang.Object key, java.lang.Object value)
PlexusContainer
addContextValue
in interface PlexusContainer
key
- any unique object valid to the Context's implementationvalue
- any object valid to the Context's implementationpublic java.lang.String getName()
PlexusContainer
getName
in interface PlexusContainer
public org.codehaus.plexus.classworlds.ClassWorld getClassWorld()
getClassWorld
in interface MutablePlexusContainer
public void setClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld)
public org.codehaus.plexus.classworlds.realm.ClassRealm getContainerRealm()
PlexusContainer
getContainerRealm
in interface PlexusContainer
public void setContainerRealm(org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm)
public Context getContext()
PlexusContainer
getContext
in interface PlexusContainer
protected void initializeConfiguration(ContainerConfiguration c) throws PlexusConfigurationException, ContextException, java.io.IOException
PlexusConfigurationException
ContextException
java.io.IOException
protected java.io.Reader getInterpolationConfigurationReader(java.io.Reader reader)
public void addJarResource(java.io.File jar) throws PlexusContainerException
PlexusContainer
addJarResource
in interface PlexusContainer
jar
- a JAR file
PlexusContainerException
public void addJarRepository(java.io.File repository)
PlexusContainer
addJarRepository
in interface PlexusContainer
repository
- a directory containing JAR filesPlexusContainer.addJarResource(File)
public Logger getLogger()
getLogger
in interface MutablePlexusContainer
getLogger
in interface PlexusContainer
getLogger
in class AbstractLogEnabled
public void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
PlexusContainer
registerComponentDiscoveryListener
in interface PlexusContainer
listener
- A listener which responds to differnet ComponentDiscoveryEventspublic void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
PlexusContainer
removeComponentDiscoveryListener
in interface PlexusContainer
listener
- A listener to removepublic ComponentRepository getComponentRepository()
getComponentRepository
in interface MutablePlexusContainer
public void setComponentRepository(ComponentRepository componentRepository)
setComponentRepository
in interface MutablePlexusContainer
public ComponentManagerManager getComponentManagerManager()
getComponentManagerManager
in interface MutablePlexusContainer
public void setComponentManagerManager(ComponentManagerManager componentManagerManager)
setComponentManagerManager
in interface MutablePlexusContainer
public LifecycleHandlerManager getLifecycleHandlerManager()
getLifecycleHandlerManager
in interface MutablePlexusContainer
public void setLifecycleHandlerManager(LifecycleHandlerManager lifecycleHandlerManager)
setLifecycleHandlerManager
in interface MutablePlexusContainer
public ComponentDiscovererManager getComponentDiscovererManager()
getComponentDiscovererManager
in interface MutablePlexusContainer
public void setComponentDiscovererManager(ComponentDiscovererManager componentDiscovererManager)
setComponentDiscovererManager
in interface MutablePlexusContainer
public ComponentFactoryManager getComponentFactoryManager()
getComponentFactoryManager
in interface MutablePlexusContainer
public void setComponentFactoryManager(ComponentFactoryManager componentFactoryManager)
setComponentFactoryManager
in interface MutablePlexusContainer
public ComponentLookupManager getComponentLookupManager()
getComponentLookupManager
in interface MutablePlexusContainer
public void setComponentLookupManager(ComponentLookupManager componentLookupManager)
setComponentLookupManager
in interface MutablePlexusContainer
public LoggerManager getLoggerManager()
getLoggerManager
in interface MutablePlexusContainer
getLoggerManager
in interface PlexusContainer
public void setLoggerManager(LoggerManager loggerManager)
setLoggerManager
in interface MutablePlexusContainer
setLoggerManager
in interface PlexusContainer
public PlexusConfiguration getConfiguration()
getConfiguration
in interface MutablePlexusContainer
public void setConfiguration(PlexusConfiguration configuration)
setConfiguration
in interface MutablePlexusContainer
public org.codehaus.plexus.classworlds.realm.ClassRealm getComponentRealm(java.lang.String realmId)
getComponentRealm
in interface MutablePlexusContainer
getComponentRealm
in interface PlexusContainer
public void removeComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws PlexusContainerException
PlexusContainer
removeComponentRealm
in interface PlexusContainer
realm
- Realm to remove from the container.
PlexusContainerException
public org.codehaus.plexus.classworlds.realm.ClassRealm getLookupRealm(java.lang.Object component)
getLookupRealm
in interface PlexusContainer
public void setConfigurationSource(ConfigurationSource configurationSource)
setConfigurationSource
in interface MutablePlexusContainer
public ConfigurationSource getConfigurationSource()
getConfigurationSource
in interface MutablePlexusContainer
public boolean isDevMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |