Class BeanReferences


  • public class BeanReferences
    extends java.lang.Object
    Set of names that represent bean reference for the single injection point. Each injection point can have more then one definition of bean references. They are used when reference name is not explicitly defined.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEmpty()
      Returns true if BeanReferences is empty.
      java.lang.String name​(int ndx)
      Returns the name on the index.
      static BeanReferences of​(java.lang.String... names)
      Creates new bean reference.
      BeanReferences removeDuplicateNames()
      Removes later duplicated references in an array.
      int size()
      Returns the number of name references in this set.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • of

        public static BeanReferences of​(java.lang.String... names)
        Creates new bean reference.
      • isEmpty

        public boolean isEmpty()
        Returns true if BeanReferences is empty.
      • size

        public int size()
        Returns the number of name references in this set.
      • name

        public java.lang.String name​(int ndx)
        Returns the name on the index.
      • removeDuplicateNames

        public BeanReferences removeDuplicateNames()
        Removes later duplicated references in an array. Returns new instance of BeanReferences if there was changes, otherwise returns the same instance.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object