org.xwiki.component.descriptor
Interface ComponentDependency<T>

All Superinterfaces:
ComponentRole<T>
All Known Implementing Classes:
DefaultComponentDependency

public interface ComponentDependency<T>
extends ComponentRole<T>

Represents a component dependency.

Since:
1.7M1
Version:
$Id$

Method Summary
 java.lang.String[] getHints()
           
 java.lang.Class<?> getMappingType()
           
 java.lang.String getName()
           
 
Methods inherited from interface org.xwiki.component.descriptor.ComponentRole
getRole, getRoleHint
 

Method Detail

getName

java.lang.String getName()
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

getMappingType

java.lang.Class<?> getMappingType()
Returns:
the class of the type for the injection (java.lang.String, java.util.List, etc)

getHints

java.lang.String[] getHints()
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.