Package io.quarkus.arc.processor
Class BeanInfo
java.lang.Object
io.quarkus.arc.processor.BeanInfo
- All Implemented Interfaces:
InjectionTargetInfo
- Direct Known Subclasses:
DecoratorInfo,InterceptorInfo
Represents a CDI bean at build time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.arc.processor.InjectionTargetInfo
InjectionTargetInfo.TargetKind -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasBean()booleanReturns whether this bean can be inactive.booleanorg.jboss.jandex.DotNameNote that the decorators are not available until the bean is fully initialized, i.e.Note that the interceptors are not available until the bean is fully initialized, i.e.org.jboss.jandex.ClassInfogetName()org.jboss.jandex.TypeOptional<org.jboss.jandex.AnnotationInstance>getQualifier(org.jboss.jandex.DotName dotName) Set<org.jboss.jandex.AnnotationInstance>getScope()Optional<org.jboss.jandex.AnnotationTarget>protected StringgetType()Set<org.jboss.jandex.Type>getTypes()Set<org.jboss.jandex.Type>booleanbooleanhasAroundInvokeInterceptorWithBinding(org.jboss.jandex.DotName binding) booleanbooleaninthashCode()booleanbooleanbooleanhasType(org.jboss.jandex.DotName typeName) booleanbooleanisAssignableTo(org.jboss.jandex.Type requiredType, org.jboss.jandex.AnnotationInstance... requiredQualifiers) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleankind()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.arc.processor.InjectionTargetInfo
asDisposer, asInvoker, asObserver
-
Field Details
-
target
-
scope
-
types
-
unrestrictedTypes
-
qualifiers
-
-
Method Details
-
kind
- Specified by:
kindin interfaceInjectionTargetInfo
-
asBean
- Specified by:
asBeanin interfaceInjectionTargetInfo
-
getIdentifier
-
getTarget
- Returns:
- the annotation target or an empty optional in case of synthetic beans
-
getImplClazz
public org.jboss.jandex.ClassInfo getImplClazz()- Returns:
- the impl class or null in case of a producer of a primitive type or an array
-
isClassBean
public boolean isClassBean() -
isProducerMethod
public boolean isProducerMethod() -
isProducerField
public boolean isProducerField() -
isProducer
public boolean isProducer() -
isStaticProducer
public boolean isStaticProducer() -
isSynthetic
public boolean isSynthetic() -
isRemovable
public boolean isRemovable() -
getBeanClass
public org.jboss.jandex.DotName getBeanClass() -
isInterceptor
public boolean isInterceptor() -
isDecorator
public boolean isDecorator() -
getDeclaringBean
-
getProviderType
public org.jboss.jandex.Type getProviderType() -
getScope
-
getTypes
-
getUnrestrictedTypes
- Returns:
- the unrestricted set of bean types
- See Also:
-
Typed
-
hasType
public boolean hasType(org.jboss.jandex.DotName typeName) -
getQualifiers
-
getQualifier
-
hasDefaultQualifiers
public boolean hasDefaultQualifiers() -
hasInjectionPoint
public boolean hasInjectionPoint() -
getAllInjectionPoints
-
hasAroundInvokeInterceptorWithBinding
public boolean hasAroundInvokeInterceptorWithBinding(org.jboss.jandex.DotName binding) - Returns:
trueif the bean has an associated interceptor with the given binding,falseotherwise
-
getInterceptedMethodsBindings
public Map<org.jboss.jandex.MethodInfo,Set<org.jboss.jandex.AnnotationInstance>> getInterceptedMethodsBindings()- Returns:
- an immutable map of intercepted methods to the set of interceptor bindings
-
hasLifecycleInterceptors
public boolean hasLifecycleInterceptors() -
hasAroundInvokeInterceptors
public boolean hasAroundInvokeInterceptors() -
hasDestroyLogic
public boolean hasDestroyLogic()- Returns:
trueif the bean requires some customized destroy logic
-
isForceApplicationClass
public boolean isForceApplicationClass() -
getBoundInterceptors
Note that the interceptors are not available until the bean is fully initialized, i.e. they are available afterBeanProcessor.initialize(Consumer, List).- Returns:
- an ordered list of all interceptors associated with the bean
-
getBoundDecorators
Note that the decorators are not available until the bean is fully initialized, i.e. they are available afterBeanProcessor.initialize(Consumer, List).- Returns:
- an ordered list of all decorators associated with the bean
-
getDisposer
-
isAlternative
public boolean isAlternative() -
getPriority
-
getStereotypes
-
getName
-
isDefaultBean
public boolean isDefaultBean() -
getStartupPriority
-
isAssignableTo
public boolean isAssignableTo(org.jboss.jandex.Type requiredType, org.jboss.jandex.AnnotationInstance... requiredQualifiers) - Parameters:
requiredType-requiredQualifiers-- Returns:
trueif this bean is assignable to the required type and qualifiers
-
canBeInactive
public boolean canBeInactive()Returns whether this bean can be inactive. Most beans are always active, but certain synthetic beans may be inactive from time to time.- Returns:
- whether this bean can be inactive
- See Also:
-
getCheckActiveConsumer()
-
getTargetPackageName
-
getClientProxyPackageName
-
getType
-
toString
-
hashCode
public int hashCode() -
equals
-