Interface BeanEntry


public interface BeanEntry
A bean entry with priority and optional name.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Priority of normal bean.
    static final int
    Priority of @Primary bean.
    static final int
    Priority of @Secondary bean.
    static final int
    Priority of externally supplied bean.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the bean instance.
    boolean
    hasKey(Class<?> type)
    Return true if the entry has a key for this type.
    Return the type keys for this bean.
    int
    Return the wiring priority of the bean.
    Return the bean name.
    The bean instance type.
  • Field Details

  • Method Details

    • qualifierName

      Return the bean name.
    • bean

      Return the bean instance.
    • type

      Class<?> type()
      The bean instance type.
    • priority

      int priority()
      Return the wiring priority of the bean.
    • keys

      Return the type keys for this bean.

      This is the set of type, interface types and annotation types that the entry is registered for.

    • hasKey

      boolean hasKey(Class<?> type)
      Return true if the entry has a key for this type.

      This is true if the keys contains the canonical name of the given type.

      Parameters:
      type - The type to match. Can be any type including concrete, interface or annotation type.