Package io.quarkus.arc.processor
Class InterceptorGenerator
java.lang.Object
io.quarkus.arc.processor.BeanGenerator
io.quarkus.arc.processor.InterceptorGenerator
- Author:
- Martin Kouba
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final booleanprotected final ReflectionRegistrationFields inherited from class io.quarkus.arc.processor.BeanGenerator
annotationLiterals, applicationClassPredicate, beanToGeneratedBaseName, beanToGeneratedName, existingClasses, FIELD_NAME_BEAN_TYPES, FIELD_NAME_DECLARING_PROVIDER_SUPPLIER, FIELD_NAME_PROXY, FIELD_NAME_QUALIFIERS, FIELD_NAME_STEREOTYPES, injectionPointAnnotationsPredicate, privateMembers, suppressConditionGenerators -
Constructor Summary
ConstructorsConstructorDescriptionInterceptorGenerator(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 Summary
Modifier and TypeMethodDescriptionprotected io.quarkus.gizmo.MethodCreatorcreateConstructor(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) protected StringgetBaseName(String beanClassName) protected voidimplementGetBeanClass(InterceptorInfo interceptor, io.quarkus.gizmo.ClassCreator beanCreator) protected voidimplementGetInterceptorBindings(io.quarkus.gizmo.ClassCreator creator, io.quarkus.gizmo.FieldDescriptor bindingsField) protected voidimplementGetPriority(io.quarkus.gizmo.ClassCreator creator, InterceptorInfo interceptor) protected voidimplementIntercept(io.quarkus.gizmo.ClassCreator creator, InterceptorInfo interceptor, io.quarkus.arc.processor.BeanGenerator.ProviderType providerType, ReflectionRegistration reflectionRegistration, boolean isApplicationClass) protected voidimplementIntercepts(io.quarkus.gizmo.ClassCreator creator, InterceptorInfo interceptor) protected booleanisPackagePrivate(int mod) protected booleanisReflectionFallbackNeeded(org.jboss.jandex.FieldInfo field, String targetPackage, BeanInfo bean) protected booleanisReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method, String targetPackage) Methods inherited from class io.quarkus.arc.processor.BeanGenerator
collectInjectionPointAnnotations, collectInjectionPointQualifiers, collectQualifiers, createConstructor, createProviderFields, getJavaMemberHandle, implementCreate, implementDestroy, implementEquals, implementGet, implementGetBeanClass, implementGetDeclaringBean, implementGetIdentifier, implementGetImplementationClass, implementGetKind, implementGetName, implementGetPriority, implementGetQualifiers, implementGetScope, implementGetStereotypes, implementGetTypes, implementHashCode, implementIsAlternative, implementIsDefaultBean, implementIsSuppressed, implementSupplierGet, implementToString, initConstructor, initMaps
-
Field Details
-
FIELD_NAME_BINDINGS
- See Also:
-
generateSources
protected final boolean generateSources -
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
-
isReflectionFallbackNeeded
protected boolean isReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method, String targetPackage) -
isReflectionFallbackNeeded
-
isPackagePrivate
protected boolean isPackagePrivate(int mod)
-