Package org.xwiki.component.descriptor
Interface ComponentDependency<T>
-
- Type Parameters:
T
- the type of the component role
- All Superinterfaces:
ComponentRole<T>
- All Known Implementing Classes:
DefaultComponentDependency
public interface ComponentDependency<T> extends ComponentRole<T>
Represents a component dependency.- Since:
- 1.7M1
- Version:
- $Id: 297a1e620d184e145f2217628174b29f82562559 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String[]
getHints()
Class<?>
getMappingType()
Deprecated.since 4.0M1 useComponentRole.getRoleType()
insteadString
getName()
-
Methods inherited from interface org.xwiki.component.descriptor.ComponentRole
getRole, getRoleHint, getRoleType
-
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- the name of the injection point (can be the name of the field for field injection or the name of the method for method injection
-
getHints
String[] getHints()
- Returns:
- a list of hints used when the mapping type is a collection or map so that only component implementations matching passed hints are injected
-
getMappingType
@Deprecated Class<?> getMappingType()
Deprecated.since 4.0M1 useComponentRole.getRoleType()
instead- Returns:
- the class of the type for the injection (java.lang.String, java.util.List, etc)
-
-