Class BeanEntry<T>

java.lang.Object
io.avaje.inject.BeanEntry<T>

public class BeanEntry<T>
extends Object
A bean entry with priority and optional name.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int NORMAL
    A normal priority bean.
    static int PRIMARY
    An @Primary bean.
    static int SECONDARY
    A @Secondary bean.
    static int SUPPLIED
    An explicitly supplied bean.
  • Constructor Summary

    Constructors
    Constructor Description
    BeanEntry​(int priority, T bean, String name)
    Construct with priority, name and the bean.
  • Method Summary

    Modifier and Type Method Description
    T getBean()
    Return the bean.
    String getName()
    Return the bean name.
    int getPriority()
    Return the priority (Primary, Normal and Secondary).
    boolean isPrimary()
    Return true if this entry has Primary priority.
    boolean isSecondary()
    Return true if this entry has Secondary priority.
    boolean isSupplied()
    Return true if this entry has Supplied priority.
    String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • BeanEntry

      public BeanEntry​(int priority, T bean, String name)
      Construct with priority, name and the bean.
  • Method Details

    • getPriority

      public int getPriority()
      Return the priority (Primary, Normal and Secondary).
    • getBean

      public T getBean()
      Return the bean.
    • getName

      public String getName()
      Return the bean name.
    • isSupplied

      public boolean isSupplied()
      Return true if this entry has Supplied priority.
    • isPrimary

      public boolean isPrimary()
      Return true if this entry has Primary priority.
    • isSecondary

      public boolean isSecondary()
      Return true if this entry has Secondary priority.
    • toString

      public String toString()
      Overrides:
      toString in class Object