org.xwiki.component.annotation
Interface ComponentDependencyFactory

All Known Implementing Classes:
AbstractComponentDependencyFactory, DefaultComponentDependencyFactory

public interface ComponentDependencyFactory

Allows creating ComponentDependency instances from a Method Field. There can be several implementations, for example one using @Inject and @Named annotations to describe a Component Dependency. Note that this interface allows cleanly plugging new implementations to extend how Component Descriptor are recognized. This allows for example to cleanly support legacy implementation (for example to use the old

Since:
3.2RC1
Version:
$Id: 416ce10543e05e726fb13ca0b2ec4a7e42d02251 $

Method Summary
 ComponentDependency createComponentDependency(Field field)
           
 

Method Detail

createComponentDependency

ComponentDependency createComponentDependency(Field field)
Parameters:
field - the field for which to extract a Component Dependency
Returns:
the Component Dependency instance created from the passed field or null if the field doesn't match the requirements


Copyright © 2004–2013 XWiki. All rights reserved.