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 @Requirement annotations we used to use).
    Since:
    3.2RC1
    Version:
    $Id: 2c4cf2802b53ed9838e8577c6e1dc2a94d2de8f2 $
    • 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