org.xwiki.component.descriptor
Class DefaultComponentDependency<T>

java.lang.Object
  extended by org.xwiki.component.descriptor.DefaultComponentRole<T>
      extended by 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$

Constructor Summary
DefaultComponentDependency()
           
 
Method Summary
 String[] getHints()
           
 Class<?> getMappingType()
           
 String getName()
           
 void setHints(String[] hints)
           
 void setMappingType(Class<?> mappingType)
           
 void setName(String name)
           
 
Methods inherited from class org.xwiki.component.descriptor.DefaultComponentRole
getRole, getRoleHint, setRole, setRoleHint, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xwiki.component.descriptor.ComponentRole
getRole, getRoleHint
 

Constructor Detail

DefaultComponentDependency

public DefaultComponentDependency()
Method Detail

getMappingType

public 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 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(Class<?> mappingType)

setName

public void setName(String name)

setHints

public void setHints(String[] hints)

getHints

public 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.