Class DefaultComponentDependency<T>

    • Constructor Detail

      • DefaultComponentDependency

        public DefaultComponentDependency()
        Default constructor.
      • DefaultComponentDependency

        public DefaultComponentDependency​(ComponentDependency<T> dependency)
        Create a new DefaultComponentDependency by cloning the provided ComponentDependency.
        Parameters:
        dependency - the component dependency to clone
        Since:
        3.4M1
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface ComponentDependency<T>
        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

        public String[] getHints()
        Specified by:
        getHints in interface ComponentDependency<T>
        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
      • setName

        public void setName​(String name)
        Parameters:
        name - 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
      • setHints

        public void setHints​(String[] hints)
        Parameters:
        hints - a list of hints used when the mapping type is a collection or map so that only component implementations matching passed hints are injected