T - the type of the component rolepublic class DefaultComponentDependency<T> extends DefaultComponentRole<T> implements ComponentDependency<T>
ComponentDependency.| Constructor and Description |
|---|
DefaultComponentDependency()
Default constructor.
|
DefaultComponentDependency(ComponentDependency<T> dependency)
Create a new DefaultComponentDependency by cloning the provided
ComponentDependency. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String[] |
getHints() |
Class<?> |
getMappingType()
Deprecated.
|
String |
getName() |
Class<T> |
getRole() |
int |
hashCode() |
void |
setHints(String[] hints) |
void |
setMappingType(Class<?> mappingType)
Deprecated.
since 4.0M1 use
DefaultComponentRole.setRoleType(java.lang.reflect.Type) instead |
void |
setName(String name) |
void |
setRole(Class<T> role) |
getRoleHint, getRoleType, setRoleHint, setRoleType, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetRoleHint, getRoleTypepublic DefaultComponentDependency()
public DefaultComponentDependency(ComponentDependency<T> dependency)
ComponentDependency.dependency - the component dependency to clonepublic String getName()
getName in interface ComponentDependency<T>public String[] getHints()
getHints in interface ComponentDependency<T>public void setName(String name)
name - the name of the injection point (can be the name of the field for field injection or the name of the
method for method injectionpublic void setHints(String[] hints)
hints - a list of hints used when the mapping type is a collection or map so that only component
implementations matching passed hints are injectedpublic boolean equals(Object object)
equals in class DefaultComponentRole<T>public int hashCode()
hashCode in class DefaultComponentRole<T>@Deprecated public Class<?> getMappingType()
getMappingType in interface ComponentDependency<T>@Deprecated public void setMappingType(Class<?> mappingType)
DefaultComponentRole.setRoleType(java.lang.reflect.Type) insteadmappingType - the class of the type for the injection (java.lang.String, java.util.List, etc)public Class<T> getRole()
getRole in interface ComponentRole<T>getRole in class DefaultComponentRole<T>public void setRole(Class<T> role)
setRole in class DefaultComponentRole<T>role - the class of the component roleCopyright © 2004–2014 XWiki. All rights reserved.