Package io.quarkus.arc.processor
Class BeanInfo
- java.lang.Object
-
- io.quarkus.arc.processor.BeanInfo
-
- All Implemented Interfaces:
InjectionTargetInfo
- Direct Known Subclasses:
DecoratorInfo,InterceptorInfo
public class BeanInfo extends Object implements InjectionTargetInfo
Represents a CDI bean at build time.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.arc.processor.InjectionTargetInfo
InjectionTargetInfo.TargetKind
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanInfoasBean()booleanequals(Object obj)List<InjectionPointInfo>getAllInjectionPoints()IntegergetAlternativePriority()org.jboss.jandex.DotNamegetBeanClass()List<DecoratorInfo>getBoundDecorators()Note that the decorators are not available until the bean is fully initialized, i.e.List<InterceptorInfo>getBoundInterceptors()Note that the interceptors are not available until the bean is fully initialized, i.e.StringgetClientProxyPackageName()BeanInfogetDeclaringBean()DisposerInfogetDisposer()StringgetIdentifier()org.jboss.jandex.ClassInfogetImplClazz()Map<org.jboss.jandex.MethodInfo,Set<org.jboss.jandex.AnnotationInstance>>getInterceptedMethodsBindings()StringgetName()IntegergetPriority()org.jboss.jandex.TypegetProviderType()Optional<org.jboss.jandex.AnnotationInstance>getQualifier(org.jboss.jandex.DotName dotName)Set<org.jboss.jandex.AnnotationInstance>getQualifiers()ScopeInfogetScope()List<StereotypeInfo>getStereotypes()Optional<org.jboss.jandex.AnnotationTarget>getTarget()StringgetTargetPackageName()protected StringgetType()Set<org.jboss.jandex.Type>getTypes()booleanhasAroundInvokeInterceptors()booleanhasAroundInvokeInterceptorWithBinding(org.jboss.jandex.DotName binding)booleanhasDefaultQualifiers()booleanhasDestroyLogic()inthashCode()booleanhasInjectionPoint()booleanhasLifecycleInterceptors()booleanhasType(org.jboss.jandex.DotName typeName)booleanisAlternative()booleanisAssignableTo(org.jboss.jandex.Type requiredType, org.jboss.jandex.AnnotationInstance... requiredQualifiers)booleanisClassBean()booleanisDecorator()booleanisDefaultBean()booleanisForceApplicationClass()booleanisInterceptor()booleanisProducer()booleanisProducerField()booleanisProducerMethod()booleanisRemovable()booleanisStaticProducer()booleanisSynthetic()InjectionTargetInfo.TargetKindkind()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.arc.processor.InjectionTargetInfo
asDisposer, asObserver
-
-
-
-
Method Detail
-
kind
public InjectionTargetInfo.TargetKind kind()
- Specified by:
kindin interfaceInjectionTargetInfo
-
asBean
public BeanInfo asBean()
- Specified by:
asBeanin interfaceInjectionTargetInfo
-
getIdentifier
public String getIdentifier()
-
getTarget
public Optional<org.jboss.jandex.AnnotationTarget> 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
public BeanInfo getDeclaringBean()
-
getProviderType
public org.jboss.jandex.Type getProviderType()
-
getScope
public ScopeInfo getScope()
-
getTypes
public Set<org.jboss.jandex.Type> getTypes()
-
hasType
public boolean hasType(org.jboss.jandex.DotName typeName)
-
getQualifiers
public Set<org.jboss.jandex.AnnotationInstance> getQualifiers()
-
getQualifier
public Optional<org.jboss.jandex.AnnotationInstance> getQualifier(org.jboss.jandex.DotName dotName)
-
hasDefaultQualifiers
public boolean hasDefaultQualifiers()
-
hasInjectionPoint
public boolean hasInjectionPoint()
-
getAllInjectionPoints
public List<InjectionPointInfo> 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
public List<InterceptorInfo> 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
public List<DecoratorInfo> 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
public DisposerInfo getDisposer()
-
isAlternative
public boolean isAlternative()
-
getAlternativePriority
public Integer getAlternativePriority()
-
getPriority
public Integer getPriority()
-
getStereotypes
public List<StereotypeInfo> getStereotypes()
-
getName
public String getName()
-
isDefaultBean
public boolean isDefaultBean()
-
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
-
getTargetPackageName
public String getTargetPackageName()
-
getClientProxyPackageName
public String getClientProxyPackageName()
-
getType
protected String getType()
-
-