Class BeanInfo

    • Field Detail

      • target

        protected final Optional<org.jboss.jandex.AnnotationTarget> target
      • types

        protected final Set<org.jboss.jandex.Type> types
      • qualifiers

        protected final Set<org.jboss.jandex.AnnotationInstance> qualifiers
    • Method Detail

      • 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()
      • 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()
      • hasAroundInvokeInterceptorWithBinding

        public boolean hasAroundInvokeInterceptorWithBinding​(org.jboss.jandex.DotName binding)
        Returns:
        true if the bean has an associated interceptor with the given binding, false otherwise
      • 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:
        true if 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 after BeanProcessor.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 after BeanProcessor.initialize(Consumer, List).
        Returns:
        an ordered list of all decorators associated with the bean
      • isAlternative

        public boolean isAlternative()
      • getAlternativePriority

        public Integer getAlternativePriority()
      • getPriority

        public Integer getPriority()
      • 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:
        true if this bean is assignable to the required type and qualifiers
      • getTargetPackageName

        public String getTargetPackageName()
      • getClientProxyPackageName

        public String getClientProxyPackageName()
      • getType

        protected String getType()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object