Class InterceptorGenerator

java.lang.Object
io.quarkus.arc.processor.BeanGenerator
io.quarkus.arc.processor.InterceptorGenerator

public class InterceptorGenerator extends BeanGenerator
Author:
Martin Kouba
  • Field Details

    • FIELD_NAME_BINDINGS

      protected static final String FIELD_NAME_BINDINGS
      See Also:
    • generateSources

      protected final boolean generateSources
    • reflectionRegistration

      protected final ReflectionRegistration reflectionRegistration
  • Constructor Details

    • 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 Details

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

      protected void implementGetPriority(io.quarkus.gizmo.ClassCreator creator, InterceptorInfo interceptor)
      See Also:
    • 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)
    • getBaseName

      protected String getBaseName(String beanClassName)
    • 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)