Class DefaultCompositionResolver
java.lang.Object
org.codehaus.plexus.component.composition.DefaultCompositionResolver
- All Implemented Interfaces:
CompositionResolver
- Author:
- Jason van Zyl, Michal Maczka
-
Field Summary
Fields inherited from interface org.codehaus.plexus.component.composition.CompositionResolver
SEPARATOR_CHAR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponentDescriptor
(ComponentDescriptor<?> componentDescriptor) findRequirements
(String role, String roleHint) Returns the list of names of components which are using the component.getRequirements
(String role, String roleHint) Returns the list of names of components which are required by the component of given role and roleHint.
-
Constructor Details
-
DefaultCompositionResolver
public DefaultCompositionResolver()
-
-
Method Details
-
addComponentDescriptor
public void addComponentDescriptor(ComponentDescriptor<?> componentDescriptor) throws CycleDetectedInComponentGraphException - Specified by:
addComponentDescriptor
in interfaceCompositionResolver
- Parameters:
componentDescriptor
-ComponentDescriptor
.- Throws:
CycleDetectedInComponentGraphException
- when cycle is detected
-
getRequirements
Description copied from interface:CompositionResolver
Returns the list of names of components which are required by the component of given role and roleHint. The names returned are in the form role:hint, where : is defined in SEPARATOR_CHAR.- Specified by:
getRequirements
in interfaceCompositionResolver
- Parameters:
role
- The name of the componentroleHint
- The implementation hint of the component- Returns:
- The list of components which are required by given component
- See Also:
-
findRequirements
Description copied from interface:CompositionResolver
Returns the list of names of components which are using the component. of given role and roleHint. The names returned are in the form role:hint, where : is defined in SEPARATOR_CHAR.- Specified by:
findRequirements
in interfaceCompositionResolver
- Parameters:
role
- The name of the componentroleHint
- The implementation hint of the component- Returns:
- The list of components which are requiring given component
- See Also:
-