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$

Method Summary
 String[] getHints()
           
 Class<?> getMappingType()
          Deprecated. since 4.0M1 use ComponentRole.getRoleType() instead
 String getName()
           
 
Methods inherited from interface org.xwiki.component.descriptor.ComponentRole
getRole, getRoleHint, getRoleType
 

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

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

getMappingType

@Deprecated
Class<?> getMappingType()
Deprecated. since 4.0M1 use ComponentRole.getRoleType() instead

Returns:
the class of the type for the injection (java.lang.String, java.util.List, etc)


Copyright © 2004-2012 XWiki. All Rights Reserved.