Package io.quarkus.arc
Interface InjectableBean<T>
-
- Type Parameters:
T-
- All Superinterfaces:
javax.enterprise.inject.spi.Bean<T>,javax.enterprise.inject.spi.BeanAttributes<T>,javax.enterprise.context.spi.Contextual<T>,InjectableReferenceProvider<T>
- All Known Subinterfaces:
InjectableDecorator<T>,InjectableInterceptor<T>
- All Known Implementing Classes:
BeanManagerBean,BuiltInBean,EventBean,InitializedInterceptor,InstanceBean
public interface InjectableBean<T> extends javax.enterprise.inject.spi.Bean<T>, InjectableReferenceProvider<T>
Quarkus representation of an injectable bean. This interface extends the standard CDIBeaninterface.- Author:
- Martin Kouba
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInjectableBean.Kind
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddestroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)default IntegergetAlternativePriority()default InjectableBean<?>getDeclaringBean()StringgetIdentifier()The identifier is generated by the container and is unique for a specific deployment.default Set<javax.enterprise.inject.spi.InjectionPoint>getInjectionPoints()default InjectableBean.KindgetKind()default StringgetName()default Set<Annotation>getQualifiers()default Class<? extends Annotation>getScope()default Set<Class<? extends Annotation>>getStereotypes()Set<Type>getTypes()default booleanisAlternative()default booleanisDefaultBean()default booleanisNullable()-
Methods inherited from interface io.quarkus.arc.InjectableReferenceProvider
get
-
-
-
-
Method Detail
-
getIdentifier
String getIdentifier()
The identifier is generated by the container and is unique for a specific deployment.- Returns:
- the identifier for this bean
-
getKind
default InjectableBean.Kind getKind()
- Returns:
- the kind of the bean
- See Also:
InjectableBean.Kind
-
getScope
default Class<? extends Annotation> getScope()
- Specified by:
getScopein interfacejavax.enterprise.inject.spi.BeanAttributes<T>- Returns:
- the scope
-
getTypes
Set<Type> getTypes()
- Specified by:
getTypesin interfacejavax.enterprise.inject.spi.BeanAttributes<T>- Returns:
- the set of bean types
-
getQualifiers
default Set<Annotation> getQualifiers()
- Specified by:
getQualifiersin interfacejavax.enterprise.inject.spi.BeanAttributes<T>- Returns:
- the set of qualifiers
-
destroy
default void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Specified by:
destroyin interfacejavax.enterprise.context.spi.Contextual<T>
-
getDeclaringBean
default InjectableBean<?> getDeclaringBean()
- Returns:
- the declaring bean if the bean is a producer method/field, or
null
-
getName
default String getName()
- Specified by:
getNamein interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
getStereotypes
default Set<Class<? extends Annotation>> getStereotypes()
- Specified by:
getStereotypesin interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
getInjectionPoints
default Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
- Specified by:
getInjectionPointsin interfacejavax.enterprise.inject.spi.Bean<T>
-
isNullable
default boolean isNullable()
- Specified by:
isNullablein interfacejavax.enterprise.inject.spi.Bean<T>
-
isAlternative
default boolean isAlternative()
- Specified by:
isAlternativein interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
getAlternativePriority
default Integer getAlternativePriority()
- Returns:
- the priority if the bean is an alternative, or
null
-
isDefaultBean
default boolean isDefaultBean()
- Returns:
- whether or not the bean is a default bean
-
-