org.codehaus.plexus.component.composition

Interface CompositionResolver

public interface CompositionResolver

Version: $Id: CompositionResolver.java 6008 2007-03-05 11:23:00Z handyande $

Author: Jason van Zyl Michal Maczka

Field Summary
static charSEPARATOR_CHAR
Method Summary
voidaddComponentDescriptor(ComponentDescriptor componentDescriptor)
ListfindRequirements(String role, String roleHint)
Returns the list of names of components which are using the component. of given role and roleHint.
ListgetRequirements(String role, String roleHint)
Returns the list of names of components which are required by the component of given role and roleHint.

Field Detail

SEPARATOR_CHAR

public static final char SEPARATOR_CHAR

Method Detail

addComponentDescriptor

public void addComponentDescriptor(ComponentDescriptor componentDescriptor)

Parameters: componentDescriptor

Throws: CompositionException when cycle is detected

findRequirements

public List findRequirements(String role, String roleHint)
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.

Parameters: role The name of the component roleHint The implementation hint of the component

Returns: The list of components which are requiring given component

getRequirements

public List getRequirements(String role, String roleHint)
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.

Parameters: role The name of the component roleHint The implementation hint of the component

Returns: The list of components which are required by given component