Package io.avaje.inject
Interface BeanEntry
-
public interface BeanEntry
A bean entry with priority and optional name.- See Also:
BeanScope.all()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectbean()Return the bean instance.booleanhasKey(Class<?> type)Return true if the entry has a key for this type.Set<String>keys()Return the type keys for this bean.intpriority()Return the priority indicating if the bean is Supplied Primary, Normal or Secondary.StringqualifierName()Return the bean name.Class<?>type()The bean instance type.
-
-
-
Field Detail
-
SUPPLIED
static final int SUPPLIED
Priority of externally supplied bean.- See Also:
- Constant Field Values
-
PRIMARY
static final int PRIMARY
Priority of@Primarybean.- See Also:
- Constant Field Values
-
NORMAL
static final int NORMAL
Priority of normal bean.- See Also:
- Constant Field Values
-
SECONDARY
static final int SECONDARY
Priority of@Secondarybean.- See Also:
- Constant Field Values
-
-
Method Detail
-
qualifierName
String qualifierName()
Return the bean name.
-
priority
int priority()
Return the priority indicating if the bean is Supplied Primary, Normal or Secondary.
-
keys
Set<String> 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.
-
-