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

Type Parameters:
T - the type of the component role
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: 4bb05016f8730564cd3d66250b9804f0ed4f3c00 $

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

Method Detail

getName

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

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

getHints

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.