Class DefaultCompositionResolver
- java.lang.Object
-
- org.codehaus.plexus.component.composition.DefaultCompositionResolver
-
- All Implemented Interfaces:
CompositionResolver
public class DefaultCompositionResolver extends java.lang.Object implements CompositionResolver
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.util.dag.DAGdag-
Fields inherited from interface org.codehaus.plexus.component.composition.CompositionResolver
SEPARATOR_CHAR
-
-
Constructor Summary
Constructors Constructor Description DefaultCompositionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponentDescriptor(ComponentDescriptor<?> componentDescriptor)java.util.ListfindRequirements(java.lang.String role, java.lang.String roleHint)Returns the list of names of components which are using the component.private java.lang.StringgetDAGKey(java.lang.String role, java.lang.String roleHint)java.util.ListgetRequirements(java.lang.String role, java.lang.String roleHint)Returns the list of names of components which are required by the component of given role and roleHint.
-
-
-
Method Detail
-
addComponentDescriptor
public void addComponentDescriptor(ComponentDescriptor<?> componentDescriptor) throws CycleDetectedInComponentGraphException
- Specified by:
addComponentDescriptorin interfaceCompositionResolver- Parameters:
componentDescriptor-ComponentDescriptor.- Throws:
CycleDetectedInComponentGraphException- when cycle is detected
-
getRequirements
public java.util.List getRequirements(java.lang.String role, java.lang.String roleHint)Description copied from interface:CompositionResolverReturns 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:
getRequirementsin 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:
CompositionResolver.getRequirements(String,String)
-
findRequirements
public java.util.List findRequirements(java.lang.String role, java.lang.String roleHint)Description copied from interface:CompositionResolverReturns 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:
findRequirementsin 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:
CompositionResolver.findRequirements(String,String)
-
getDAGKey
private java.lang.String getDAGKey(java.lang.String role, java.lang.String roleHint)
-
-