org.xwiki.component.annotation
Class DefaultComponentDependencyFactory
java.lang.Object
org.xwiki.component.annotation.AbstractComponentDependencyFactory
org.xwiki.component.annotation.DefaultComponentDependencyFactory
- All Implemented Interfaces:
- ComponentDependencyFactory
public class DefaultComponentDependencyFactory
- extends AbstractComponentDependencyFactory
Uses Inject and Named annotations to recognize a Component Dependency.
- Since:
- 3.2RC1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultComponentDependencyFactory
public DefaultComponentDependencyFactory()
createComponentDependency
public 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
getFieldRole
protected Class<?> getFieldRole(Field field)
- Extract component role from the field to inject.
- Parameters:
field - the field to inject
- Returns:
- the role of the field to inject
Copyright © 2004-2012 XWiki. All Rights Reserved.