Package jodd.petite.def
Class BeanReferences
- java.lang.Object
-
- jodd.petite.def.BeanReferences
-
public class BeanReferences extends java.lang.ObjectSet 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 booleanisEmpty()Returns true if BeanReferences is empty.java.lang.Stringname(int ndx)Returns the name on the index.static BeanReferencesof(java.lang.String... names)Creates new bean reference.BeanReferencesremoveDuplicateNames()Removes later duplicated references in an array.intsize()Returns the number of name references in this set.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-