Package org.xwiki.component.annotation
Interface ComponentDependencyFactory
-
- All Known Implementing Classes:
AbstractComponentDependencyFactory
,DefaultComponentDependencyFactory
public interface ComponentDependencyFactory
Allows creatingComponentDependency
instances from a MethodField
. There can be several implementations, for example one using@Inject
and@Named
annotations to describe a Component Dependency. Note that this interface allows cleanly plugging new implementations to extend how Component Descriptor are recognized. This allows for example to cleanly support legacy implementation (for example to use the old@Requirement
annotations we used to use).- Since:
- 3.2RC1
- Version:
- $Id: 2c4cf2802b53ed9838e8577c6e1dc2a94d2de8f2 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComponentDependency
createComponentDependency(Field field)
-
-
-
Method Detail
-
createComponentDependency
ComponentDependency createComponentDependency(Field field)
- Parameters:
field
- the field for which to extract a Component Dependency- Returns:
- the Component Dependency instance created from the passed field or null if the field doesn't match the requirements
-
-