public interface

BeanEntry

implements Map.Entry<K, V>
org.sonatype.inject.BeanEntry<Q extends java.lang.annotation.Annotation, T>

Class Overview

Map Entry that maps a JSR330 @Qualifier annotation to a bean implementation.

Summary

Public Methods
abstract String getDescription()
Returns a human-readable description of the bean; see @Description.
abstract Class<T> getImplementationClass()
Attempts to find the implementation type without creating the bean instance.
abstract Q getKey()
Returns the @Qualifier annotation associated with this particular bean.
abstract Provider<T> getProvider()
Returns the underlying Provider; may support creation of multiple instances.
abstract int getRank()
Returns the bean's rank; higher ranked beans override lower ranked beans.
abstract Object getSource()
Returns an arbitrary object that describes where this bean was configured.
abstract T getValue()
Returns the associated instance of the bean; returns same instance for each call.
[Expand]
Inherited Methods
From interface java.util.Map.Entry

Public Methods

public abstract String getDescription ()

Returns a human-readable description of the bean; see @Description.

Returns
  • Human-readable description

public abstract Class<T> getImplementationClass ()

Attempts to find the implementation type without creating the bean instance.

Returns
  • Implementation type; null if the type cannot be determined

public abstract Q getKey ()

Returns the @Qualifier annotation associated with this particular bean.

Returns
  • Qualifier annotation

public abstract Provider<T> getProvider ()

Returns the underlying Provider; may support creation of multiple instances.

Returns
  • Bean provider

public abstract int getRank ()

Returns the bean's rank; higher ranked beans override lower ranked beans.

Returns
  • Assigned rank

public abstract Object getSource ()

Returns an arbitrary object that describes where this bean was configured.

Returns
  • Source location
See Also

public abstract T getValue ()

Returns the associated instance of the bean; returns same instance for each call.

Returns
  • Bean instance (lazily-created)