|
||||||||||
| 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
//TODO move lookup code to a separate component //TODO register live components so they can be wired //keep track of the interfaces for components //todo allow setting of a live configuraton so applications that embed plexus can use whatever configuration mechanism they like. They just have to adapt it into something plexus can understand. //todo make a typesafe configuration model for the container //todo pico like registration //todo need loggers per execution in the maven embedder //todo a simple front-end to make containers of different flavours, a flavour encapsulating // a set of behaviours //todo the core components should probably have a small lifecycle to pass through
| 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()
|
ComponentComposerManager |
getComponentComposerManager()
|
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. |
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()
|
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 |
setClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld)
|
void |
setComponentComposerManager(ComponentComposerManager componentComposerManager)
|
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 |
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 ComponentComposerManager componentComposerManager
protected LoggerManager loggerManager
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 PlexusContainerComponentRepositoryExceptionpublic org.codehaus.plexus.classworlds.realm.ClassRealm setLookupRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
setLookupRealm in interface PlexusContainerrealm - the new realm to use.
public org.codehaus.plexus.classworlds.realm.ClassRealm getLookupRealm()
PlexusContainerPlexusContainer.setLookupRealm(ClassRealm).
getLookupRealm in interface PlexusContainer
public org.codehaus.plexus.classworlds.realm.ClassRealm createComponentRealm(String id,
List jars)
throws PlexusContainerException
PlexusContainer
createComponentRealm in interface PlexusContainerid - unique key for the ClassRealmjars - list of JARs to place in the realm.
PlexusContainerExceptionPlexusContainer.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 PlexusContainerPlexusContainerException
public Object lookup(String componentKey)
throws ComponentLookupException
PlexusContainer
lookup in interface PlexusContainercomponentKey - 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 MutablePlexusContainerlookup in interface PlexusContainercomponentKey - a unique key for the desired component
ComponentLookupException
public Map lookupMap(String role)
throws ComponentLookupException
PlexusContainer
lookupMap in interface PlexusContainerrole - 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 PlexusContainerrole - a non-unique key for the desired components
ComponentLookupException
public List lookupList(String role)
throws ComponentLookupException
PlexusContainer
lookupList in interface PlexusContainerrole - 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 PlexusContainerrole - a non-unique key for the desired components
ComponentLookupException
public Map lookupMap(String role,
List hints)
throws ComponentLookupException
PlexusContainer
lookupMap in interface PlexusContainerrole - 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 PlexusContainerrole - a non-unique key for the desired components
ComponentLookupException
public List lookupList(String role,
List hints)
throws ComponentLookupException
PlexusContainer
lookupList in interface PlexusContainerrole - 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 PlexusContainerrole - a non-unique key for the desired components
ComponentLookupException
public Object lookup(String role,
String roleHint)
throws ComponentLookupException
PlexusContainer
lookup in interface PlexusContainerrole - 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 MutablePlexusContainerlookup in interface PlexusContainerrole - 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 PlexusContainercomponentClass - 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 PlexusContainercomponentClass - a unique key for the desired component
ComponentLookupException
public Map lookupMap(Class role)
throws ComponentLookupException
PlexusContainer
lookupMap in interface PlexusContainerrole - 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 PlexusContainerrole - a non-unique class key for the desired components
ComponentLookupException
public List lookupList(Class role)
throws ComponentLookupException
PlexusContainer
lookupList in interface PlexusContainerrole - 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 PlexusContainerrole - a non-unique class key for the desired components
ComponentLookupException
public Object lookup(Class role,
String roleHint)
throws ComponentLookupException
PlexusContainer
lookup in interface PlexusContainerrole - 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 PlexusContainerrole - 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 PlexusContainerrole - 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 PlexusContainerrole - a non-unique class key for the desired components
ComponentLookupException
public List lookupList(Class role,
List hints)
throws ComponentLookupException
PlexusContainer
lookupList in interface PlexusContainerrole - 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 PlexusContainerrole - a non-unique class key for the desired components
ComponentLookupExceptionpublic Date getCreationDate()
PlexusContainer
getCreationDate in interface PlexusContainerpublic boolean hasChildContainer(String name)
PlexusContainer
hasChildContainer in interface PlexusContainername - a key unique amongst this container's children
public void removeChildContainer(String name)
PlexusContainer
removeChildContainer in interface PlexusContainername - a key unique amongst this container's childrenpublic PlexusContainer getChildContainer(String name)
PlexusContainer
getChildContainer in interface PlexusContainername - a key unique amongst this container's children
public void setName(String name)
setName in interface PlexusContainerpublic void setParentPlexusContainer(PlexusContainer container)
PlexusContainer
setParentPlexusContainer in interface PlexusContainercontainer - the parent of this container, null if nonepublic ComponentDescriptor getComponentDescriptor(String role)
PlexusContainer
getComponentDescriptor in interface PlexusContainerrole - 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 PlexusContainerrole - 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 PlexusContainerrole - 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 PlexusContainerrole - 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 PlexusContainerrole - a non-unique key for the desired components
public Map getComponentDescriptorMap(String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
getComponentDescriptorMap in interface PlexusContainerrole - a non-unique key for the desired components
public List getComponentDescriptorList(String role)
PlexusContainer
getComponentDescriptorList in interface PlexusContainerrole - a non-unique key for the desired components
public List getComponentDescriptorList(String role,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
PlexusContainer
getComponentDescriptorList in interface PlexusContainerrole - a non-unique key for the desired components
public void addComponentDescriptor(ComponentDescriptor componentDescriptor)
throws ComponentRepositoryException
PlexusContainer
addComponentDescriptor in interface PlexusContainerComponentRepositoryException
public void release(Object component)
throws ComponentLifecycleException
PlexusContainer
release in interface PlexusContainercomponent - the plexus component object to release
ComponentLifecycleException
public void releaseAll(Map components)
throws ComponentLifecycleException
PlexusContainer
releaseAll in interface PlexusContainercomponents - Map of plexus component objects to release
ComponentLifecycleExceptionPlexusContainer.release( Object component )
public void releaseAll(List components)
throws ComponentLifecycleException
PlexusContainer
releaseAll in interface PlexusContainercomponents - List of plexus component objects to release
ComponentLifecycleExceptionPlexusContainer.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 MutablePlexusContaineroverride - wheter to override/merge any conflicting components, where the new component takes precedence.
PlexusConfigurationException
ComponentRepositoryExceptionMutablePlexusContainer.discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm,boolean)
protected void start()
throws PlexusContainerException
PlexusContainerExceptionpublic void dispose()
PlexusContainer
dispose in interface PlexusContainerprotected void disposeAllComponents()
public void addContextValue(Object key,
Object value)
PlexusContainer
addContextValue in interface PlexusContainerkey - any unique object valid to the Context's implementationvalue - any object valid to the Context's implementationpublic String getName()
PlexusContainer
getName in interface PlexusContainerpublic org.codehaus.plexus.classworlds.ClassWorld getClassWorld()
getClassWorld in interface MutablePlexusContainerpublic void setClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld)
public org.codehaus.plexus.classworlds.realm.ClassRealm getContainerRealm()
PlexusContainer
getContainerRealm in interface PlexusContainerpublic void setContainerRealm(org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm)
public Context getContext()
PlexusContainer
getContext in interface PlexusContainer
protected void initializeConfiguration(ContainerConfiguration c)
throws ConfigurationProcessingException,
ConfigurationResourceNotFoundException,
PlexusConfigurationException,
ContextException,
IOException
ConfigurationProcessingException
ConfigurationResourceNotFoundException
PlexusConfigurationException
ContextException
IOExceptionprotected Reader getInterpolationConfigurationReader(Reader reader)
public void addJarResource(File jar)
throws PlexusContainerException
PlexusContainer
addJarResource in interface PlexusContainerjar - a JAR file
PlexusContainerExceptionpublic void addJarRepository(File repository)
PlexusContainer
addJarRepository in interface PlexusContainerrepository - a directory containing JAR filesPlexusContainer.addJarResource(File)public Logger getLogger()
getLogger in interface MutablePlexusContainergetLogger in interface PlexusContainergetLogger in class AbstractLogEnabledpublic void registerComponentDiscoveryListener(ComponentDiscoveryListener listener)
PlexusContainer
registerComponentDiscoveryListener in interface PlexusContainerlistener - A listener which responds to differnet ComponentDiscoveryEventspublic void removeComponentDiscoveryListener(ComponentDiscoveryListener listener)
PlexusContainer
removeComponentDiscoveryListener in interface PlexusContainerlistener - A listener to removepublic void setReloadingEnabled(boolean reloadingEnabled)
PlexusContainer
setReloadingEnabled in interface PlexusContainerreloadingEnabled - true is a component may be reloadedpublic boolean isReloadingEnabled()
PlexusContainer
isReloadingEnabled in interface PlexusContainerpublic ComponentRepository getComponentRepository()
getComponentRepository in interface MutablePlexusContainerpublic void setComponentRepository(ComponentRepository componentRepository)
setComponentRepository in interface MutablePlexusContainerpublic ComponentManagerManager getComponentManagerManager()
getComponentManagerManager in interface MutablePlexusContainerpublic void setComponentManagerManager(ComponentManagerManager componentManagerManager)
setComponentManagerManager in interface MutablePlexusContainerpublic LifecycleHandlerManager getLifecycleHandlerManager()
getLifecycleHandlerManager in interface MutablePlexusContainerpublic void setLifecycleHandlerManager(LifecycleHandlerManager lifecycleHandlerManager)
setLifecycleHandlerManager in interface MutablePlexusContainerpublic ComponentDiscovererManager getComponentDiscovererManager()
getComponentDiscovererManager in interface MutablePlexusContainerpublic void setComponentDiscovererManager(ComponentDiscovererManager componentDiscovererManager)
setComponentDiscovererManager in interface MutablePlexusContainerpublic ComponentFactoryManager getComponentFactoryManager()
getComponentFactoryManager in interface MutablePlexusContainerpublic void setComponentFactoryManager(ComponentFactoryManager componentFactoryManager)
setComponentFactoryManager in interface MutablePlexusContainerpublic ComponentLookupManager getComponentLookupManager()
getComponentLookupManager in interface MutablePlexusContainerpublic void setComponentLookupManager(ComponentLookupManager componentLookupManager)
setComponentLookupManager in interface MutablePlexusContainerpublic ComponentComposerManager getComponentComposerManager()
getComponentComposerManager in interface MutablePlexusContainerpublic void setComponentComposerManager(ComponentComposerManager componentComposerManager)
setComponentComposerManager in interface MutablePlexusContainerpublic LoggerManager getLoggerManager()
getLoggerManager in interface MutablePlexusContainergetLoggerManager in interface PlexusContainerpublic void setLoggerManager(LoggerManager loggerManager)
setLoggerManager in interface MutablePlexusContainersetLoggerManager in interface PlexusContainerpublic PlexusConfiguration getConfiguration()
getConfiguration in interface MutablePlexusContainerpublic void setConfiguration(PlexusConfiguration configuration)
setConfiguration in interface MutablePlexusContainerpublic PlexusContainer getParentContainer()
getParentContainer in interface MutablePlexusContainerpublic org.codehaus.plexus.classworlds.realm.ClassRealm getComponentRealm(String realmId)
getComponentRealm in interface MutablePlexusContainergetComponentRealm in interface PlexusContainerpublic org.codehaus.plexus.classworlds.realm.ClassRealm getLookupRealm(Object component)
getLookupRealm in interface PlexusContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||