Class BeanProcessor.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setBeanArchiveIndex

        public BeanProcessor.Builder setBeanArchiveIndex​(org.jboss.jandex.IndexView beanArchiveIndex)
        Set the bean archive index. This index is mandatory and is used to discover components (beans, interceptors, qualifiers, etc.) and during type-safe resolution.
        Parameters:
        beanArchiveIndex -
        Returns:
        self
      • setApplicationIndex

        public BeanProcessor.Builder setApplicationIndex​(org.jboss.jandex.IndexView applicationIndex)
        Set the application index. This index is optional and is also used to discover types during type-safe resolution.

        Some types may not be part of the bean archive index but are still needed during type-safe resolution.

        Parameters:
        applicationIndex -
        Returns:
        self
      • setAdditionalStereotypes

        public BeanProcessor.Builder setAdditionalStereotypes​(Map<org.jboss.jandex.DotName,​Collection<org.jboss.jandex.AnnotationInstance>> additionalStereotypes)
      • setSharedAnnotationLiterals

        public BeanProcessor.Builder setSharedAnnotationLiterals​(boolean sharedAnnotationLiterals)
      • setApplicationClassPredicate

        public BeanProcessor.Builder setApplicationClassPredicate​(Predicate<org.jboss.jandex.DotName> applicationClassPredicate)
      • setAllowMocking

        public void setAllowMocking​(boolean allowMocking)
      • setRemoveUnusedBeans

        public BeanProcessor.Builder setRemoveUnusedBeans​(boolean removeUnusedBeans)
        If set to true the container will attempt to remove all unused beans.

        An unused bean:

        • is not a built-in bean or interceptor,
        • is not eligible for injection to any injection point,
        • is not excluded - see addRemovalExclusion(Predicate),
        • does not have a name,
        • does not declare an observer,
        • does not declare any producer which is eligible for injection to any injection point,
        • is not directly eligible for injection into any Instance injection point
        Parameters:
        removeUnusedBeans -
        Returns:
        self
      • setTransformUnproxyableClasses

        public BeanProcessor.Builder setTransformUnproxyableClasses​(boolean value)
        If set to true the container will transform unproxyable bean classes during validation.
        Parameters:
        value -
        Returns:
        self
      • setFailOnInterceptedPrivateMethod

        public void setFailOnInterceptedPrivateMethod​(boolean failOnInterceptedPrivateMethod)
        If set to true, the build will fail if an annotation that would result in an interceptor being created (such as @Transactional)
      • setGenerateSources

        public BeanProcessor.Builder setGenerateSources​(boolean value)
        If set to true the will generate source files of all generated classes for debug purposes. The generated source is not actually a source file but a textual representation of generated code.
        Parameters:
        value -
        Returns:
        self
      • setAlternativePriorities

        public BeanProcessor.Builder setAlternativePriorities​(AlternativePriorities priorities)
        Can be used to compute a priority of an alternative bean. A non-null computed value always takes precedence over the priority defined by Priority, AlternativePriority or an alternative stereotype.
        Parameters:
        priorities -
        Returns:
        self
      • addExcludeType

        public BeanProcessor.Builder addExcludeType​(Predicate<org.jboss.jandex.ClassInfo> predicate)
        Specify the types that should be excluded from discovery.
        Parameters:
        predicate -
        Returns:
        self