Package org.codehaus.plexus
Class DefaultPlexusContainer
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.DefaultPlexusContainer
- All Implemented Interfaces:
LogEnabled,MutablePlexusContainer,PlexusContainer
Default implementation of PlexusContainer and MutablePlexusContainer.
- Author:
- Jason van Zyl, Kenney Westerhof
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.codehaus.plexus.classworlds.ClassWorldprotected ComponentDiscovererManagerSimple index (registry) of ComponentDiscovers and ComponentDiscoveryListener.protected ComponentFactoryManagerTrivial class to look-up ComponentFactory instances in this container.protected PlexusConfigurationprotected Readerprotected ConfigurationSourceConverts a ComponentDescriptor into PlexusConfiguration.protected ContextArbitrary data associated with the container.protected org.codehaus.plexus.classworlds.realm.ClassRealmprotected static final Stringprotected static final Stringprotected LoggerManagerGeneric logger interface.Fields inherited from interface org.codehaus.plexus.PlexusContainer
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(Object component, String role) voidaddComponent(Object component, String role, String roleHint) <T> voidaddComponent(T component, Class<?> role, String roleHint) Adds live component instance to this container.voidaddComponentDescriptor(ComponentDescriptor<?> componentDescriptor) Adds a component descriptor to this container. componentDescriptor should have realmId set.voidaddContextValue(Object key, Object value) Add a key/value pair to this container's Context.org.codehaus.plexus.classworlds.realm.ClassRealmdiscoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm realm) Discovers components in the given realm.discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm realm, Object data) Discovers components in the given realm.voiddispose()Disposes of this container, which in turn disposes all of it's components.org.codehaus.plexus.classworlds.ClassWorld<T> ComponentDescriptor<T>getComponentDescriptor(Class<T> type, String role, String roleHint) Returns the ComponentDescriptor with the given component role and hint.getComponentDescriptor(String role) Returns the ComponentDescriptor with the given component role and the default role hint.getComponentDescriptor(String role, String roleHint) Returns the ComponentDescriptor with the given component role and hint.<T> List<ComponentDescriptor<T>>getComponentDescriptorList(Class<T> type, String role) Returns a List of ComponentDescriptors with the given role.Returns a List of ComponentDescriptors with the given role.<T> Map<String,ComponentDescriptor<T>> getComponentDescriptorMap(Class<T> type, String role) Returns a Map of ComponentDescriptors with the given role, keyed by role-hint.Returns a Map of ComponentDescriptors with the given role, keyed by role-hint.org.codehaus.plexus.classworlds.realm.ClassRealmgetComponentRealm(String realmId) org.codehaus.plexus.classworlds.realm.ClassRealmReturns the Classworld's ClassRealm of this Container, which acts as the default parent for all contained components.Returns this container's context.protected Readerorg.codehaus.plexus.classworlds.realm.ClassRealmReturns the lookup realm for this container, which is either the container realm or the realm set byPlexusContainer.setLookupRealm(ClassRealm).org.codehaus.plexus.classworlds.realm.ClassRealmgetLookupRealm(Object component) Utility method to get a default lookup realm for a component.booleanhasComponent(Class<?> type) Returns true if this container has a component with the given role/role-hint.booleanhasComponent(Class<?> type, String roleHint) Returns true if this container has a component with the given role/role-hint.booleanhasComponent(Class<?> type, String role, String roleHint) Returns true if this container has a component with the given role/role-hint.booleanhasComponent(String role) Returns true if this container has the keyed component.booleanhasComponent(String role, String roleHint) Returns true if this container has a component with the given role/role-hint.protected voidinitialize(ContainerConfiguration containerConfiguration) protected voidprotected voidinitializePhases(ContainerConfiguration containerConfiguration) <T> TLooks up and returns a component object with the given unique key or role.<T> TLooks up and returns a component object with the given unique role/role-hint combination.<T> TLooks up and returns a component object with the given unique role/role-hint combination.Looks up and returns a component object with the given unique key or role.Looks up and returns a component object with the given unique role/role-hint combination.<T> Tlookup(ComponentDescriptor<T> componentDescriptor) Looks up and returns a component object matching the given component descriptor.<T> List<T>lookupList(Class<T> type) Looks up and returns a List of component objects with the given role.<T> List<T>lookupList(Class<T> type, List<String> roleHints) Looks up and returns a List of component objects with the given role.lookupList(String role) Looks up and returns a List of component objects with the given role.lookupList(String role, List<String> roleHints) Looks up and returns a List of component objects with the given role.Looks up and returns a Map of component objects with the given role, keyed by all available role-hints.Looks up and returns a Map of component objects with the given role, keyed by all available role-hints.Looks up and returns a Map of component objects with the given role, keyed by all available role-hints.Looks up and returns a Map of component objects with the given role, keyed by all available role-hints.voidAdds the listener to this container.voidReleases the component from the container.voidreleaseAll(List<?> components) Releases all Listed components from the container.voidreleaseAll(Map<String, ?> components) Releases all Mapped component values from the container.voidRemoves the listener from this container.voidremoveComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm) Dissociate the realm with the specified id from the container.voidsetClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld) voidsetComponentDiscovererManager(ComponentDiscovererManager componentDiscovererManager) voidsetComponentFactoryManager(ComponentFactoryManager componentFactoryManager) voidsetComponentRegistry(ComponentRegistry componentRegistry) voidsetConfiguration(PlexusConfiguration configuration) voidsetConfigurationSource(ConfigurationSource configurationSource) voidsetContainerRealm(org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm) voidsetLoggerManager(LoggerManager loggerManager) org.codehaus.plexus.classworlds.realm.ClassRealmsetLookupRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm) Sets the lookup realm to use for lookup calls that don't have a ClassRealm parameter.protected voidstart()Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, setupLogger, setupLogger, setupLogger
-
Field Details
-
DEFAULT_CONTAINER_NAME
- See Also:
-
DEFAULT_REALM_NAME
- See Also:
-
containerContext
Arbitrary data associated with the container. Data in the container has highest precedence when configuring a component to create. -
configuration
-
configurationReader
-
classWorld
protected org.codehaus.plexus.classworlds.ClassWorld classWorld -
containerRealm
protected org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm -
componentDiscovererManager
Simple index (registry) of ComponentDiscovers and ComponentDiscoveryListener. -
componentFactoryManager
Trivial class to look-up ComponentFactory instances in this container. -
loggerManager
Generic logger interface. -
configurationSource
Converts a ComponentDescriptor into PlexusConfiguration.
-
-
Constructor Details
-
DefaultPlexusContainer
- Throws:
PlexusContainerException
-
DefaultPlexusContainer
- Throws:
PlexusContainerException
-
-
Method Details
-
addComponent
- Specified by:
addComponentin interfacePlexusContainer
-
addComponent
Description copied from interface:PlexusContainerAdds live component instance to this container. Component instance is not associated with any class realm and will be ignored during lookup is lookup realm is provided using thread context classloader.- Specified by:
addComponentin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
component- The component.role- The role.roleHint- The hint.
-
addComponent
-
setLookupRealm
public org.codehaus.plexus.classworlds.realm.ClassRealm setLookupRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm) Description copied from interface:PlexusContainerSets the lookup realm to use for lookup calls that don't have a ClassRealm parameter.- Specified by:
setLookupRealmin interfacePlexusContainer- Parameters:
realm- the new realm to use.- Returns:
- The previous lookup realm. It is advised to set it back once the old-style lookups have completed.
-
getLookupRealm
public org.codehaus.plexus.classworlds.realm.ClassRealm getLookupRealm()Description copied from interface:PlexusContainerReturns the lookup realm for this container, which is either the container realm or the realm set byPlexusContainer.setLookupRealm(ClassRealm).- Specified by:
getLookupRealmin interfacePlexusContainer- Returns:
ClassRealm
-
createChildRealm
- Specified by:
createChildRealmin interfacePlexusContainer
-
lookup
Description copied from interface:PlexusContainerLooks up and returns a component object with the given unique key or role.- Specified by:
lookupin interfacePlexusContainer- Parameters:
role- a unique key for the desired component- Returns:
- a Plexus component object
- Throws:
ComponentLookupException- in case of lookup error.
-
lookup
Description copied from interface:PlexusContainerLooks up and returns a component object with the given unique role/role-hint combination.- Specified by:
lookupin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired componentroleHint- a hint for the desired component implementation- Returns:
- a Plexus component object
- Throws:
ComponentLookupException- in case of lookup error.
-
lookup
Description copied from interface:PlexusContainerLooks up and returns a component object with the given unique key or role.- Specified by:
lookupin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the unique type of the component within the container- Returns:
- a Plexus component object
- Throws:
ComponentLookupException- in case of lookup error.
-
lookup
Description copied from interface:PlexusContainerLooks up and returns a component object with the given unique role/role-hint combination.- Specified by:
lookupin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the non-unique type of the componentroleHint- a hint for the desired component implementation- Returns:
- a Plexus component object
- Throws:
ComponentLookupException- in case of lookup error.
-
lookup
Description copied from interface:PlexusContainerLooks up and returns a component object with the given unique role/role-hint combination.- Specified by:
lookupin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the non-unique type of the componentrole- a non-unique key for the desired componentroleHint- a hint for the desired component implementation- Returns:
- a Plexus component object
- Throws:
ComponentLookupException- in case of lookup error.
-
lookup
Description copied from interface:PlexusContainerLooks up and returns a component object matching the given component descriptor.- Specified by:
lookupin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
componentDescriptor- the descriptor of the component- Returns:
- a Plexus component object
- Throws:
ComponentLookupException- in case of lookup error.
-
lookupList
Description copied from interface:PlexusContainerLooks up and returns a List of component objects with the given role.- Specified by:
lookupListin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired components- Returns:
- a List of component objects
- Throws:
ComponentLookupException- in case of lookup error.
-
lookupList
Description copied from interface:PlexusContainerLooks up and returns a List of component objects with the given role.- Specified by:
lookupListin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired componentsroleHints- the list of hints.- Returns:
- a List of component objects
- Throws:
ComponentLookupException- in case of lookup error.
-
lookupList
Description copied from interface:PlexusContainerLooks up and returns a List of component objects with the given role.- Specified by:
lookupListin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the non-unique type of the components- Returns:
- a List of component objects
- Throws:
ComponentLookupException- in case of lookup error.
-
lookupList
public <T> List<T> lookupList(Class<T> type, List<String> roleHints) throws ComponentLookupException Description copied from interface:PlexusContainerLooks up and returns a List of component objects with the given role.- Specified by:
lookupListin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the non-unique type of the componentsroleHints- the list of hints.- Returns:
- a List of component objects
- Throws:
ComponentLookupException- in case of lookup error.
-
lookupMap
Description copied from interface:PlexusContainerLooks up and returns a Map of component objects with the given role, keyed by all available role-hints.- Specified by:
lookupMapin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired components- Returns:
- a Map of component objects
- Throws:
ComponentLookupException- in case of lookup error.
-
lookupMap
public Map<String,Object> lookupMap(String role, List<String> roleHints) throws ComponentLookupException Description copied from interface:PlexusContainerLooks up and returns a Map of component objects with the given role, keyed by all available role-hints.- Specified by:
lookupMapin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired componentsroleHints- the list of hints.- Returns:
- a Map of component objects
- Throws:
ComponentLookupException- in case of lookup error.
-
lookupMap
Description copied from interface:PlexusContainerLooks up and returns a Map of component objects with the given role, keyed by all available role-hints.- Specified by:
lookupMapin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the non-unique type of the components- Returns:
- a Map of component objects
- Throws:
ComponentLookupException- in case of lookup error.
-
lookupMap
public <T> Map<String,T> lookupMap(Class<T> type, List<String> roleHints) throws ComponentLookupException Description copied from interface:PlexusContainerLooks up and returns a Map of component objects with the given role, keyed by all available role-hints.- Specified by:
lookupMapin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the non-unique type of the componentsroleHints- the list of hints.- Returns:
- a Map of component objects
- Throws:
ComponentLookupException- in case of lookup error.
-
hasComponent
Description copied from interface:PlexusContainerReturns true if this container has the keyed component.- Specified by:
hasComponentin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired component- Returns:
- true if this container has the keyed component
-
hasComponent
Description copied from interface:PlexusContainerReturns true if this container has a component with the given role/role-hint.- Specified by:
hasComponentin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired componentroleHint- a hint for the desired component implementation- Returns:
- true if this container has a component with the given role/role-hint
-
hasComponent
Description copied from interface:PlexusContainerReturns true if this container has a component with the given role/role-hint.- Specified by:
hasComponentin interfacePlexusContainer- Parameters:
type- the non-unique type of the component- Returns:
- true if this container has a component with the given role/role-hint
-
hasComponent
Description copied from interface:PlexusContainerReturns true if this container has a component with the given role/role-hint.- Specified by:
hasComponentin interfacePlexusContainer- Parameters:
type- the non-unique type of the componentroleHint- a hint for the desired component implementation- Returns:
- true if this container has a component with the given role/role-hint
-
hasComponent
Description copied from interface:PlexusContainerReturns true if this container has a component with the given role/role-hint.- Specified by:
hasComponentin interfacePlexusContainer- Parameters:
type- the non-unique type of the componentrole- a non-unique key for the desired componentroleHint- a hint for the desired component implementation- Returns:
- true if this container has a component with the given role/role-hint
-
getComponentDescriptor
Description copied from interface:PlexusContainerReturns the ComponentDescriptor with the given component role and the default role hint. Searches up the hierarchy until one is found, null if none is found.- Specified by:
getComponentDescriptorin interfacePlexusContainer- Parameters:
role- a unique role for the desired component's descriptor- Returns:
- the ComponentDescriptor with the given component role
-
getComponentDescriptor
Description copied from interface:PlexusContainerReturns the ComponentDescriptor with the given component role and hint. Searches up the hierarchy until one is found, null if none is found.- Specified by:
getComponentDescriptorin interfacePlexusContainer- Parameters:
role- a unique role for the desired component's descriptorroleHint- a hint showing which implementation should be used- Returns:
- the ComponentDescriptor with the given component role
-
getComponentDescriptor
public <T> ComponentDescriptor<T> getComponentDescriptor(Class<T> type, String role, String roleHint) Description copied from interface:PlexusContainerReturns the ComponentDescriptor with the given component role and hint. Searches up the hierarchy until one is found, null if none is found.- Specified by:
getComponentDescriptorin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the Java type of the desired componentrole- a unique role for the desired component's descriptorroleHint- a hint showing which implementation should be used- Returns:
- the ComponentDescriptor with the given component role
-
getComponentDescriptorMap
Description copied from interface:PlexusContainerReturns a Map of ComponentDescriptors with the given role, keyed by role-hint. Searches up the hierarchy until all are found, an empty Map if none are found.- Specified by:
getComponentDescriptorMapin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired components- Returns:
- a Map of component descriptors keyed by role-hint
-
getComponentDescriptorMap
Description copied from interface:PlexusContainerReturns a Map of ComponentDescriptors with the given role, keyed by role-hint. Searches up the hierarchy until all are found, an empty Map if none are found.- Specified by:
getComponentDescriptorMapin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the Java type of the desired componentsrole- a non-unique key for the desired components- Returns:
- a Map of component descriptors keyed by role-hint
-
getComponentDescriptorList
Description copied from interface:PlexusContainerReturns a List of ComponentDescriptors with the given role. Searches up the hierarchy until all are found, an empty List if none are found.- Specified by:
getComponentDescriptorListin interfacePlexusContainer- Parameters:
role- a non-unique key for the desired components- Returns:
- a List of component descriptors
-
getComponentDescriptorList
Description copied from interface:PlexusContainerReturns a List of ComponentDescriptors with the given role. Searches up the hierarchy until all are found, an empty List if none are found.- Specified by:
getComponentDescriptorListin interfacePlexusContainer- Type Parameters:
T- The type.- Parameters:
type- the Java type of the desired componentsrole- a non-unique key for the desired components- Returns:
- a List of component descriptors
-
addComponentDescriptor
public void addComponentDescriptor(ComponentDescriptor<?> componentDescriptor) throws CycleDetectedInComponentGraphException Description copied from interface:PlexusContainerAdds a component descriptor to this container. componentDescriptor should have realmId set.- Specified by:
addComponentDescriptorin interfacePlexusContainer- Parameters:
componentDescriptor-ComponentDescriptor- Throws:
CycleDetectedInComponentGraphException- In case of an error.
-
release
Description copied from interface:PlexusContainerReleases the component from the container. This is dependent upon how the implementation manages the component, but usually enacts some standard lifecycle shutdown procedure on the component. In every case, the component is no longer accessible from the container (unless another is created).- Specified by:
releasein interfacePlexusContainer- Parameters:
component- the plexus component object to release- Throws:
ComponentLifecycleException- in case of an error.
-
releaseAll
Description copied from interface:PlexusContainerReleases all Mapped component values from the container.- Specified by:
releaseAllin interfacePlexusContainer- Parameters:
components- Map of plexus component objects to release- Throws:
ComponentLifecycleException- in case of an error.- See Also:
-
releaseAll
Description copied from interface:PlexusContainerReleases all Listed components from the container.- Specified by:
releaseAllin interfacePlexusContainer- Parameters:
components- List of plexus component objects to release- Throws:
ComponentLifecycleException- in case of an error.- See Also:
-
initialize
protected void initialize(ContainerConfiguration containerConfiguration) throws PlexusContainerException - Throws:
PlexusContainerException
-
initializePhases
protected void initializePhases(ContainerConfiguration containerConfiguration) throws PlexusContainerException - Throws:
PlexusContainerException
-
start
- Throws:
PlexusContainerException
-
dispose
public void dispose()Description copied from interface:PlexusContainerDisposes of this container, which in turn disposes all of it's components. This container should also remove itself from the container hierarchy.- Specified by:
disposein interfacePlexusContainer
-
addContextValue
Description copied from interface:PlexusContainerAdd a key/value pair to this container's Context.- Specified by:
addContextValuein interfacePlexusContainer- Parameters:
key- any unique object valid to the Context's implementationvalue- any object valid to the Context's implementation
-
getClassWorld
public org.codehaus.plexus.classworlds.ClassWorld getClassWorld()- Specified by:
getClassWorldin interfaceMutablePlexusContainer
-
setClassWorld
public void setClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld) -
getContainerRealm
public org.codehaus.plexus.classworlds.realm.ClassRealm getContainerRealm()Description copied from interface:PlexusContainerReturns the Classworld's ClassRealm of this Container, which acts as the default parent for all contained components.- Specified by:
getContainerRealmin interfacePlexusContainer- Returns:
- the ClassRealm of this Container
-
setContainerRealm
public void setContainerRealm(org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm) -
getContext
Description copied from interface:PlexusContainerReturns this container's context. A Context is a simple data store used to hold values which may alter the execution of the Container.- Specified by:
getContextin interfacePlexusContainer- Returns:
- this container's context.
-
initializeConfiguration
protected void initializeConfiguration(ContainerConfiguration c) throws PlexusConfigurationException, ContextException, IOException -
getInterpolationConfigurationReader
-
getLogger
- Specified by:
getLoggerin interfaceMutablePlexusContainer- Overrides:
getLoggerin classAbstractLogEnabled
-
registerComponentDiscoveryListener
Description copied from interface:PlexusContainerAdds the listener to this container. ComponentDiscoveryListeners have the ability to respond to various ComponentDiscoverer events.- Specified by:
registerComponentDiscoveryListenerin interfacePlexusContainer- Parameters:
listener- A listener which responds to different ComponentDiscoveryEvents
-
removeComponentDiscoveryListener
Description copied from interface:PlexusContainerRemoves the listener from this container.- Specified by:
removeComponentDiscoveryListenerin interfacePlexusContainer- Parameters:
listener- A listener to remove
-
getComponentRegistry
- Specified by:
getComponentRegistryin interfaceMutablePlexusContainer
-
setComponentRegistry
- Specified by:
setComponentRegistryin interfaceMutablePlexusContainer
-
getComponentDiscovererManager
- Specified by:
getComponentDiscovererManagerin interfaceMutablePlexusContainer
-
setComponentDiscovererManager
- Specified by:
setComponentDiscovererManagerin interfaceMutablePlexusContainer
-
getComponentFactoryManager
- Specified by:
getComponentFactoryManagerin interfaceMutablePlexusContainer
-
setComponentFactoryManager
- Specified by:
setComponentFactoryManagerin interfaceMutablePlexusContainer
-
getConfiguration
- Specified by:
getConfigurationin interfaceMutablePlexusContainer
-
setConfiguration
- Specified by:
setConfigurationin interfaceMutablePlexusContainer
-
getComponentRealm
- Specified by:
getComponentRealmin interfaceMutablePlexusContainer- Specified by:
getComponentRealmin interfacePlexusContainer
-
removeComponentRealm
public void removeComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws PlexusContainerException Description copied from interface:PlexusContainerDissociate the realm with the specified id from the container. This will remove all components contained in the realm from the component repository.- Specified by:
removeComponentRealmin interfacePlexusContainer- Parameters:
realm- Realm to remove from the container.- Throws:
PlexusContainerException-PlexusContainerException.
-
getLookupRealm
Utility method to get a default lookup realm for a component.- Specified by:
getLookupRealmin interfacePlexusContainer- Parameters:
component- The component.- Returns:
ClassRealm
-
setConfigurationSource
- Specified by:
setConfigurationSourcein interfaceMutablePlexusContainer
-
getConfigurationSource
- Specified by:
getConfigurationSourcein interfaceMutablePlexusContainer
-
getLoggerManager
- Specified by:
getLoggerManagerin interfaceMutablePlexusContainer
-
setLoggerManager
- Specified by:
setLoggerManagerin interfaceMutablePlexusContainer
-
discoverComponents
public List<ComponentDescriptor<?>> discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws PlexusConfigurationException, CycleDetectedInComponentGraphException Description copied from interface:PlexusContainerDiscovers components in the given realm.- Specified by:
discoverComponentsin interfacePlexusContainer- Parameters:
realm-ClassRealm- Returns:
- list
ComponentDescriptor - Throws:
PlexusConfigurationException- in case of an error.CycleDetectedInComponentGraphException- in case of an error.
-
discoverComponents
public List<ComponentDescriptor<?>> discoverComponents(org.codehaus.plexus.classworlds.realm.ClassRealm realm, Object data) throws PlexusConfigurationException, CycleDetectedInComponentGraphException Description copied from interface:PlexusContainerDiscovers components in the given realm.- Specified by:
discoverComponentsin interfacePlexusContainer- Parameters:
realm- theClassRealm.data- The data.- Returns:
- list
ComponentDescriptor - Throws:
PlexusConfigurationException- in case of an error.CycleDetectedInComponentGraphException- in case of an error.
-