Package io.quarkus.arc.processor
Class DecoratorGenerator
- java.lang.Object
-
- io.quarkus.arc.processor.BeanGenerator
-
- io.quarkus.arc.processor.DecoratorGenerator
-
public class DecoratorGenerator extends BeanGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringFIELD_NAME_DECORATED_TYPESprotected static StringFIELD_NAME_DELEGATE_TYPEprotected booleangenerateSourcesprotected ReflectionRegistrationreflectionRegistration-
Fields 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
Constructors Constructor Description DecoratorGenerator(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateConstructor(io.quarkus.gizmo.ClassOutput classOutput, io.quarkus.gizmo.ClassCreator creator, DecoratorInfo decorator, Map<InjectionPointInfo,String> injectionPointToProviderField, io.quarkus.gizmo.FieldCreator delegateType, io.quarkus.gizmo.FieldCreator delegateQualifiers, io.quarkus.gizmo.FieldCreator decoratedTypes, ReflectionRegistration reflectionRegistration)protected StringgetBaseName(BeanInfo bean, String beanClassName)protected voidimplementGetDecoratedTypes(io.quarkus.gizmo.ClassCreator creator, io.quarkus.gizmo.FieldDescriptor decoratedTypes)protected voidimplementGetDelegateQualifiers(io.quarkus.gizmo.ClassCreator creator, io.quarkus.gizmo.FieldCreator qualifiersField)protected voidimplementGetDelegateType(io.quarkus.gizmo.ClassCreator creator, io.quarkus.gizmo.FieldDescriptor delegateType)protected voidimplementGetPriority(io.quarkus.gizmo.ClassCreator creator, DecoratorInfo decorator)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 Detail
-
FIELD_NAME_DECORATED_TYPES
protected static final String FIELD_NAME_DECORATED_TYPES
- See Also:
- Constant Field Values
-
FIELD_NAME_DELEGATE_TYPE
protected static final String FIELD_NAME_DELEGATE_TYPE
- See Also:
- Constant Field Values
-
generateSources
protected final boolean generateSources
-
reflectionRegistration
protected final ReflectionRegistration reflectionRegistration
-
-
Constructor Detail
-
DecoratorGenerator
public DecoratorGenerator(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 void createConstructor(io.quarkus.gizmo.ClassOutput classOutput, io.quarkus.gizmo.ClassCreator creator, DecoratorInfo decorator, Map<InjectionPointInfo,String> injectionPointToProviderField, io.quarkus.gizmo.FieldCreator delegateType, io.quarkus.gizmo.FieldCreator delegateQualifiers, io.quarkus.gizmo.FieldCreator decoratedTypes, ReflectionRegistration reflectionRegistration)
-
implementGetDecoratedTypes
protected void implementGetDecoratedTypes(io.quarkus.gizmo.ClassCreator creator, io.quarkus.gizmo.FieldDescriptor decoratedTypes)- See Also:
Decorator.getDecoratedTypes()
-
implementGetDelegateType
protected void implementGetDelegateType(io.quarkus.gizmo.ClassCreator creator, io.quarkus.gizmo.FieldDescriptor delegateType)- See Also:
Decorator.getDelegateType()
-
implementGetDelegateQualifiers
protected void implementGetDelegateQualifiers(io.quarkus.gizmo.ClassCreator creator, io.quarkus.gizmo.FieldCreator qualifiersField)- Parameters:
creator-qualifiersField-- See Also:
InjectableDecorator.getDelegateQualifiers()
-
implementGetPriority
protected void implementGetPriority(io.quarkus.gizmo.ClassCreator creator, DecoratorInfo decorator)- See Also:
InjectableBean.getPriority()
-
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)
-
-