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$
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-2012 XWiki. All Rights Reserved.