|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.component.descriptor.DefaultComponentRole<T>
org.xwiki.component.descriptor.DefaultComponentDependency<T>
T - the type of the component rolepublic class DefaultComponentDependency<T>
Default implementation of ComponentDependency.
| Constructor Summary | |
|---|---|
DefaultComponentDependency()
Default constructor. |
|
DefaultComponentDependency(ComponentDependency<T> dependency)
Create a new DefaultComponentDependency by cloning the provided ComponentDependency. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.xwiki.component.descriptor.DefaultComponentRole |
|---|
getRoleHint, getRoleType, setRoleHint, setRoleType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xwiki.component.descriptor.ComponentRole |
|---|
getRoleHint, getRoleType |
| Constructor Detail |
|---|
public DefaultComponentDependency()
public DefaultComponentDependency(ComponentDependency<T> dependency)
ComponentDependency.
dependency - the component dependency to clone| Method Detail |
|---|
public 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) instead
mappingType - 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 role
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||