org.xwiki.component.descriptor
Class DefaultComponentDependency<T>
java.lang.Object
org.xwiki.component.descriptor.DefaultComponentRole<T>
org.xwiki.component.descriptor.DefaultComponentDependency<T>
- All Implemented Interfaces:
- ComponentDependency<T>, ComponentRole<T>
public class DefaultComponentDependency<T>
- extends DefaultComponentRole<T>
- implements ComponentDependency<T>
Default implementation of ComponentDependency.
- Since:
- 1.7M1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultComponentDependency
public DefaultComponentDependency()
getMappingType
public java.lang.Class<?> getMappingType()
- Specified by:
getMappingType in interface ComponentDependency<T>
- Returns:
- the class of the type for the injection (java.lang.String, java.util.List, etc)
getName
public java.lang.String getName()
- Specified by:
getName in interface ComponentDependency<T>
- 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
setMappingType
public void setMappingType(java.lang.Class<?> mappingType)
setName
public void setName(java.lang.String name)
setHints
public void setHints(java.lang.String[] hints)
getHints
public java.lang.String[] getHints()
- Specified by:
getHints in interface ComponentDependency<T>
- 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
Copyright © 2004-2011 XWiki. All Rights Reserved.