|
||||||||||
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
Fields inherited from interface org.codehaus.plexus.PlexusContainer |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultPlexusContainer()
|
|
DefaultPlexusContainer(ContainerConfiguration c)
|
Method Summary | |
---|---|
void |
addComponent(Object component,
String role)
|
void |
addComponentDescriptor(ComponentDescriptor componentDescriptor)
Adds a component descriptor to this container. |
void |
addContextValue(Object key,
Object value)
Add a key/value pair to this container's Context. |
void |
addJarRepository(File repository)
Adds a directory of jar resources. |
void |
addJarResource(File jar)
Adds a jar to this container's ClassRealm - whose components are then discovered (via the various registered ComponentDiscoverer's). |
PlexusContainer |
createChildContainer(String name,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
|
PlexusContainer |
createChildContainer(String name,
Set urls)
|
org.codehaus.plexus.classworlds.realm.ClassRealm |
createComponentRealm(String id,
List jars)
Creates and returns a new class realm under this container's realm for the given list of jars. |
List |
discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
|
List |
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()
|
PlexusContainer |
getChildContainer(String name)
Returns a child container with the unique name. |
org.codehaus.plexus.classworlds.ClassWorld |
getClassWorld()
|
ComponentDescriptor |
getComponentDescriptor(String role)
Returns the ComponentDescriptor with the given component role and the default role hint. |
ComponentDescriptor |
getComponentDescriptor(String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Returns the ComponentDescriptor with the given component role and the default role hint. |
ComponentDescriptor |
getComponentDescriptor(String role,
String hint)
Returns the ComponentDescriptor with the given component role and hint. |
ComponentDescriptor |
getComponentDescriptor(String role,
String hint,
org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
Returns the ComponentDescriptor with the given component role and hint. |
List |
getComponentDescriptorList(String role)
Returns a List of ComponentDescriptors with the given role. |
List |
getComponentDescriptorList(String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Returns a List of ComponentDescriptors with the given role. |
List |
getComponentDescriptorList(String role,
List 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. |
Map |
getComponentDescriptorMap(String role)
Returns a Map of ComponentDescriptors with the given role, keyed by role-hint. |
Map |
getComponentDescriptorMap(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(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. |
Date |
getCreationDate()
Returns the date this container was created. |
protected Reader |
getInterpolationConfigurationReader(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(Object component)
Utility method to get a default lookup realm for a component. |
String |
getName()
Returns the unique name of this container in the container hierarchy. |
PlexusContainer |
getParentContainer()
|
boolean |
hasChildContainer(String name)
Returns true if this container has a child with the given name. |
boolean |
hasComponent(String componentKey)
Returns true if this container has the keyed component. |
boolean |
hasComponent(String componentKey,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
|
boolean |
hasComponent(String role,
String roleHint)
Returns true if this container has a component with the given role/role-hint. |
boolean |
hasComponent(String role,
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 |
isReloadingEnabled()
Returns true if a component's metadata may be reloaded, otherwise, it may be loaded only once. |
Object |
lookup(Class componentClass)
Looks up and returns a component object with the given unique key or role. |
Object |
lookup(Class componentClass,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a component object with the given unique key or role. |
Object |
lookup(Class role,
String roleHint)
Looks up and returns a component object with the given unique role/role-hint combination. |
Object |
lookup(Class role,
String roleHint,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a component object with the given unique role/role-hint combination. |
Object |
lookup(String componentKey)
Looks up and returns a component object with the given unique key or role. |
Object |
lookup(String componentKey,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a component object with the given unique key or role. |
Object |
lookup(String role,
String roleHint)
Looks up and returns a component object with the given unique role/role-hint combination. |
Object |
lookup(String role,
String roleHint,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a component object with the given unique role/role-hint combination. |
List |
lookupList(Class role)
Looks up and returns a List of component objects with the given role. |
List |
lookupList(Class role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a List of component objects with the given role. |
List |
lookupList(Class role,
List hints)
Looks up and returns a List of component objects with the given role. |
List |
lookupList(Class role,
List hints,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a List of component objects with the given role. |
List |
lookupList(String role)
Looks up and returns a List of component objects with the given role. |
List |
lookupList(String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a List of component objects with the given role. |
List |
lookupList(String role,
List hints)
Looks up and returns a List of component objects with the given role. |
List |
lookupList(String role,
List hints,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a List of component objects with the given role. |
Map |
lookupMap(Class role)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
Map |
lookupMap(Class role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
Map |
lookupMap(Class role,
List hints)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
Map |
lookupMap(Class role,
List hints,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
Map |
lookupMap(String role)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
Map |
lookupMap(String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
Map |
lookupMap(String role,
List hints)
Looks up and returns a Map of component objects with the given role, keyed by all available role-hints. |
Map |
lookupMap(String role,
List hints,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
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(Object component)
Releases the component from the container. |
void |
releaseAll(List components)
Releases all Listed components from the container. |
void |
releaseAll(Map components)
Releases all Mapped component values from the container. |
void |
removeChildContainer(String name)
Removes the keyed child from this 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(String name)
|
void |
setParentPlexusContainer(PlexusContainer container)
Sets the parent of this container. |
void |
setReloadingEnabled(boolean reloadingEnabled)
Sets the ability to reload a component's metadata multiple times. |
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 String DEFAULT_CONTAINER_NAME
protected static final String DEFAULT_REALM_NAME
protected String name
protected PlexusContainer parentContainer
protected DefaultContext containerContext
protected PlexusConfiguration configuration
protected Reader configurationReader
protected org.codehaus.plexus.classworlds.ClassWorld classWorld
protected org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm
protected List initializationPhases
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 Map childContainers
protected Date creationDate
protected boolean reloadingEnabled
Constructor Detail |
---|
public DefaultPlexusContainer() throws PlexusContainerException
PlexusContainerException
public DefaultPlexusContainer(ContainerConfiguration c) throws PlexusContainerException
PlexusContainerException
Method Detail |
---|
public void addComponent(Object component, 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(String id, List 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 PlexusContainer createChildContainer(String name, Set urls)
createChildContainer
in interface PlexusContainer
public PlexusContainer createChildContainer(String name, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws PlexusContainerException
createChildContainer
in interface PlexusContainer
PlexusContainerException
public Object lookup(String componentKey) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
componentKey
- a unique key for the desired component
ComponentLookupException
public Object lookup(String componentKey, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookup
in interface MutablePlexusContainer
lookup
in interface PlexusContainer
componentKey
- a unique key for the desired component
ComponentLookupException
public Map lookupMap(String role) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public Map lookupMap(String role, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public List lookupList(String role) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public List lookupList(String role, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public Map lookupMap(String role, List hints) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public Map lookupMap(String role, List hints, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public List lookupList(String role, List hints) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public List lookupList(String role, List hints, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique key for the desired components
ComponentLookupException
public Object lookup(String role, 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 Object lookup(String role, String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookup
in interface MutablePlexusContainer
lookup
in interface PlexusContainer
role
- a non-unique key for the desired componentroleHint
- a hint for the desired component implementation
ComponentLookupException
public Object lookup(Class componentClass) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
componentClass
- a unique key for the desired component
ComponentLookupException
public Object lookup(Class componentClass, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookup
in interface PlexusContainer
componentClass
- a unique key for the desired component
ComponentLookupException
public Map lookupMap(Class role) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public Map lookupMap(Class role, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public List lookupList(Class role) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public List lookupList(Class role, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public Object lookup(Class role, 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 Object lookup(Class role, 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 Map lookupMap(Class role, List hints) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public Map lookupMap(Class role, List hints, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookupMap
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public List lookupList(Class role, List hints) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public List lookupList(Class role, List hints, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLookupException
PlexusContainer
lookupList
in interface PlexusContainer
role
- a non-unique class key for the desired components
ComponentLookupException
public Date getCreationDate()
PlexusContainer
getCreationDate
in interface PlexusContainer
public boolean hasChildContainer(String name)
PlexusContainer
hasChildContainer
in interface PlexusContainer
name
- a key unique amongst this container's children
public void removeChildContainer(String name)
PlexusContainer
removeChildContainer
in interface PlexusContainer
name
- a key unique amongst this container's childrenpublic PlexusContainer getChildContainer(String name)
PlexusContainer
getChildContainer
in interface PlexusContainer
name
- a key unique amongst this container's children
public void setName(String name)
setName
in interface PlexusContainer
public void setParentPlexusContainer(PlexusContainer container)
PlexusContainer
setParentPlexusContainer
in interface PlexusContainer
container
- the parent of this container, null if nonepublic ComponentDescriptor getComponentDescriptor(String role)
PlexusContainer
getComponentDescriptor
in interface PlexusContainer
role
- a unique role for the desired component's descriptor
public ComponentDescriptor getComponentDescriptor(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(String role, 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(String role, 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 Map getComponentDescriptorMap(String role)
PlexusContainer
getComponentDescriptorMap
in interface PlexusContainer
role
- a non-unique key for the desired components
public Map getComponentDescriptorMap(String role, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
getComponentDescriptorMap
in interface PlexusContainer
role
- a non-unique key for the desired components
public List getComponentDescriptorList(String role)
PlexusContainer
getComponentDescriptorList
in interface PlexusContainer
role
- a non-unique key for the desired components
public List getComponentDescriptorList(String role, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
getComponentDescriptorList
in interface PlexusContainer
role
- a non-unique key for the desired components
public List getComponentDescriptorList(String role, List 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(Object component) throws ComponentLifecycleException
PlexusContainer
release
in interface PlexusContainer
component
- the plexus component object to release
ComponentLifecycleException
public void releaseAll(Map components) throws ComponentLifecycleException
PlexusContainer
releaseAll
in interface PlexusContainer
components
- Map of plexus component objects to release
ComponentLifecycleException
PlexusContainer.release( Object component )
public void releaseAll(List components) throws ComponentLifecycleException
PlexusContainer
releaseAll
in interface PlexusContainer
components
- List of plexus component objects to release
ComponentLifecycleException
PlexusContainer.release( Object component )
public boolean hasComponent(String componentKey)
PlexusContainer
hasComponent
in interface PlexusContainer
public boolean hasComponent(String componentKey, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
public boolean hasComponent(String role, String roleHint)
PlexusContainer
hasComponent
in interface PlexusContainer
public boolean hasComponent(String role, 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 List discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm) throws PlexusConfigurationException, ComponentRepositoryException
PlexusConfigurationException
ComponentRepositoryException
public List discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm, boolean override) throws PlexusConfigurationException, ComponentRepositoryException
MutablePlexusContainer
discoverComponents
in interface MutablePlexusContainer
override
- wheter to override/merge any conflicting components, where the new component takes precedence.
PlexusConfigurationException
ComponentRepositoryException
MutablePlexusContainer.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(Object key, 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 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, IOException
PlexusConfigurationException
ContextException
IOException
protected Reader getInterpolationConfigurationReader(Reader reader)
public void addJarResource(File jar) throws PlexusContainerException
PlexusContainer
addJarResource
in interface PlexusContainer
jar
- a JAR file
PlexusContainerException
public void addJarRepository(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 void setReloadingEnabled(boolean reloadingEnabled)
PlexusContainer
setReloadingEnabled
in interface PlexusContainer
reloadingEnabled
- true is a component may be reloadedpublic boolean isReloadingEnabled()
PlexusContainer
isReloadingEnabled
in interface PlexusContainer
public 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 PlexusContainer getParentContainer()
getParentContainer
in interface MutablePlexusContainer
public org.codehaus.plexus.classworlds.realm.ClassRealm getComponentRealm(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(Object component)
getLookupRealm
in interface PlexusContainer
public void setConfigurationSource(ConfigurationSource configurationSource)
setConfigurationSource
in interface MutablePlexusContainer
public ConfigurationSource getConfigurationSource()
getConfigurationSource
in interface MutablePlexusContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |