public class DefaultCompositionResolver extends Object implements CompositionResolver
SEPARATOR_CHAR
Constructor and Description |
---|
DefaultCompositionResolver() |
Modifier and Type | Method and Description |
---|---|
void |
addComponentDescriptor(ComponentDescriptor<?> componentDescriptor) |
List |
findRequirements(String role,
String roleHint)
Returns the list of names of components which are using the component.
|
List |
getRequirements(String role,
String roleHint)
Returns the list of names of components which are required
by the component of given role and roleHint.
|
public void addComponentDescriptor(ComponentDescriptor<?> componentDescriptor) throws CycleDetectedInComponentGraphException
addComponentDescriptor
in interface CompositionResolver
componentDescriptor
- ComponentDescriptor
.CycleDetectedInComponentGraphException
- when cycle is detectedpublic List getRequirements(String role, String roleHint)
CompositionResolver
getRequirements
in interface CompositionResolver
role
- The name of the componentroleHint
- The implementation hint of the componentCompositionResolver.getRequirements(String,String)
public List findRequirements(String role, String roleHint)
CompositionResolver
findRequirements
in interface CompositionResolver
role
- The name of the componentroleHint
- The implementation hint of the componentCompositionResolver.findRequirements(String,String)
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.