public interface

BeanEntry

implements Map.Entry<K, V>
org.eclipse.sisu.BeanEntry<Q extends java.lang.annotation.Annotation, T>
Known Indirect Subclasses

Class Overview

Describes Qualified bean implementations of T:

 @Inject
 Iterable<BeanEntry<Named, Command>> commands;
 
Use this when you want to know more about available beans; especially if you want to avoid creating instances.

See Also

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 indicates 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
See Also

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
See Also

public abstract Object getSource ()

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

Returns
  • Source location

public abstract T getValue ()

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

Returns
  • Bean instance (lazily-created)