Class InterceptorGenerator


  • public class InterceptorGenerator
    extends BeanGenerator
    Author:
    Martin Kouba
    • Constructor Detail

      • InterceptorGenerator

        public InterceptorGenerator​(AnnotationLiteralProcessor annotationLiterals,
                                    Predicate<org.jboss.jandex.DotName> applicationClassPredicate,
                                    io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers,
                                    boolean generateSources,
                                    ReflectionRegistration reflectionRegistration,
                                    Set<String> existingClasses,
                                    Map<BeanInfo,​String> beanToGeneratedName,
                                    Predicate<org.jboss.jandex.DotName> injectionPointAnnotationsPredicate)
    • Method Detail

      • createConstructor

        protected io.quarkus.gizmo.MethodCreator createConstructor​(io.quarkus.gizmo.ClassOutput classOutput,
                                                                   io.quarkus.gizmo.ClassCreator creator,
                                                                   InterceptorInfo interceptor,
                                                                   Map<InjectionPointInfo,​String> injectionPointToProviderField,
                                                                   io.quarkus.gizmo.FieldDescriptor bindings,
                                                                   ReflectionRegistration reflectionRegistration,
                                                                   boolean isApplicationClass,
                                                                   io.quarkus.arc.processor.BeanGenerator.ProviderType providerType)
      • implementGetBeanClass

        protected void implementGetBeanClass​(InterceptorInfo interceptor,
                                             io.quarkus.gizmo.ClassCreator beanCreator)
      • implementGetInterceptorBindings

        protected void implementGetInterceptorBindings​(io.quarkus.gizmo.ClassCreator creator,
                                                       io.quarkus.gizmo.FieldDescriptor bindingsField)
        See Also:
        Interceptor.getInterceptorBindings()
      • implementIntercepts

        protected void implementIntercepts​(io.quarkus.gizmo.ClassCreator creator,
                                           InterceptorInfo interceptor)
        See Also:
        Interceptor.intercepts(jakarta.enterprise.inject.spi.InterceptionType)
      • implementIntercept

        protected void implementIntercept​(io.quarkus.gizmo.ClassCreator creator,
                                          InterceptorInfo interceptor,
                                          io.quarkus.arc.processor.BeanGenerator.ProviderType providerType,
                                          ReflectionRegistration reflectionRegistration,
                                          boolean isApplicationClass)
        See Also:
        Interceptor.intercept(InterceptionType, Object, jakarta.interceptor.InvocationContext)
      • isReflectionFallbackNeeded

        protected boolean isReflectionFallbackNeeded​(org.jboss.jandex.MethodInfo method,
                                                     String targetPackage)
      • isReflectionFallbackNeeded

        protected boolean isReflectionFallbackNeeded​(org.jboss.jandex.FieldInfo field,
                                                     String targetPackage,
                                                     BeanInfo bean)
      • isPackagePrivate

        protected boolean isPackagePrivate​(int mod)