Package io.avaje.inject
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
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TgetBean()Return the bean.StringgetName()Return the bean name.intgetPriority()Return the priority (Primary, Normal and Secondary).booleanisPrimary()Return true if this entry has Primary priority.booleanisSecondary()Return true if this entry has Secondary priority.booleanisSupplied()Return true if this entry has Supplied priority.StringtoString()
-
Field Details
-
SUPPLIED
An explicitly supplied bean. See BeanScopeBuilder.- See Also:
- Constant Field Values
-
PRIMARY
An@Primarybean.- See Also:
- Constant Field Values
-
NORMAL
A normal priority bean.- See Also:
- Constant Field Values
-
SECONDARY
A@Secondarybean.- See Also:
- Constant Field Values
-
-
Constructor Details
-
BeanEntry
Construct with priority, name and the bean.
-
-
Method Details
-
getPriority
Return the priority (Primary, Normal and Secondary). -
getBean
Return the bean. -
getName
Return the bean name. -
isSupplied
Return true if this entry has Supplied priority. -
isPrimary
Return true if this entry has Primary priority. -
isSecondary
Return true if this entry has Secondary priority. -
toString
-