Package io.quarkus.arc.processor
Class SubclassGenerator
- java.lang.Object
-
- io.quarkus.arc.processor.SubclassGenerator
-
public class SubclassGenerator extends Object
A subclass is generated for any intercepted/decorated bean.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringFIELD_NAME_CONSTRUCTEDprotected static StringFIELD_NAME_PREDESTROYSprotected booleangenerateSourcesprotected ReflectionRegistrationreflectionRegistration
-
Constructor Summary
Constructors Constructor Description SubclassGenerator(AnnotationLiteralProcessor annotationLiterals, Predicate<org.jboss.jandex.DotName> applicationClassPredicate, boolean generateSources, ReflectionRegistration reflectionRegistration, Set<String> existingClasses, io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.quarkus.gizmo.FieldDescriptorcreateConstructor(io.quarkus.gizmo.ClassOutput classOutput, BeanInfo bean, io.quarkus.gizmo.ClassCreator subclass, org.jboss.jandex.Type providerType, String providerTypeName, ReflectionRegistration reflectionRegistration)protected voidcreateDestroy(io.quarkus.gizmo.ClassOutput classOutput, BeanInfo bean, io.quarkus.gizmo.ClassCreator subclass, io.quarkus.gizmo.FieldDescriptor preDestroysField)protected StringgetBaseName(BeanInfo bean, String beanClassName)protected booleanisPackagePrivate(int mod)protected booleanisReflectionFallbackNeeded(org.jboss.jandex.FieldInfo field, String targetPackage, BeanInfo bean)protected booleanisReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method, String targetPackage)
-
-
-
Field Detail
-
FIELD_NAME_PREDESTROYS
protected static final String FIELD_NAME_PREDESTROYS
- See Also:
- Constant Field Values
-
FIELD_NAME_CONSTRUCTED
protected static final String FIELD_NAME_CONSTRUCTED
- See Also:
- Constant Field Values
-
generateSources
protected final boolean generateSources
-
reflectionRegistration
protected final ReflectionRegistration reflectionRegistration
-
-
Constructor Detail
-
SubclassGenerator
public SubclassGenerator(AnnotationLiteralProcessor annotationLiterals, Predicate<org.jboss.jandex.DotName> applicationClassPredicate, boolean generateSources, ReflectionRegistration reflectionRegistration, Set<String> existingClasses, io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers)
-
-
Method Detail
-
createConstructor
protected io.quarkus.gizmo.FieldDescriptor createConstructor(io.quarkus.gizmo.ClassOutput classOutput, BeanInfo bean, io.quarkus.gizmo.ClassCreator subclass, org.jboss.jandex.Type providerType, String providerTypeName, ReflectionRegistration reflectionRegistration)
-
createDestroy
protected void createDestroy(io.quarkus.gizmo.ClassOutput classOutput, BeanInfo bean, io.quarkus.gizmo.ClassCreator subclass, io.quarkus.gizmo.FieldDescriptor preDestroysField)- Parameters:
classOutput-bean-subclass-preDestroysField-
-
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)
-
-