public class BeanGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationLiteralProcessor |
annotationLiterals |
protected Predicate<org.jboss.jandex.DotName> |
applicationClassPredicate |
protected Map<BeanInfo,String> |
beanToGeneratedName |
protected Set<String> |
existingClasses |
protected static String |
FIELD_NAME_BEAN_TYPES |
protected static String |
FIELD_NAME_DECLARING_PROVIDER_SUPPLIER |
protected static String |
FIELD_NAME_PARAMS |
protected static String |
FIELD_NAME_PROXY |
protected static String |
FIELD_NAME_QUALIFIERS |
protected static String |
FIELD_NAME_STEREOTYPES |
protected boolean |
generateSources |
protected Predicate<org.jboss.jandex.DotName> |
injectionPointAnnotationsPredicate |
protected io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector |
privateMembers |
protected ReflectionRegistration |
reflectionRegistration |
| Constructor and Description |
|---|
BeanGenerator(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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createConstructor(io.quarkus.gizmo.ClassOutput classOutput,
io.quarkus.gizmo.ClassCreator beanCreator,
BeanInfo bean,
String baseName,
Map<InjectionPointInfo,String> injectionPointToProviderField,
Map<InterceptorInfo,String> interceptorToProviderField,
AnnotationLiteralProcessor annotationLiterals,
ReflectionRegistration reflectionRegistration) |
protected void |
createProviderFields(io.quarkus.gizmo.ClassCreator beanCreator,
BeanInfo bean,
Map<InjectionPointInfo,String> injectionPointToProviderSupplier,
Map<InterceptorInfo,String> interceptorToProviderSupplier) |
protected String |
getBaseName(BeanInfo bean,
String beanClassName) |
protected String |
getPackageName(BeanInfo bean) |
protected void |
implementCreate(io.quarkus.gizmo.ClassOutput classOutput,
io.quarkus.gizmo.ClassCreator beanCreator,
BeanInfo bean,
io.quarkus.arc.processor.BeanGenerator.ProviderType providerType,
String baseName,
Map<InjectionPointInfo,String> injectionPointToProviderSupplierField,
Map<InterceptorInfo,String> interceptorToProviderSupplierField,
ReflectionRegistration reflectionRegistration,
String targetPackage,
boolean isApplicationClass) |
protected void |
implementDestroy(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator,
io.quarkus.arc.processor.BeanGenerator.ProviderType providerType,
Map<InjectionPointInfo,String> injectionPointToProviderField,
ReflectionRegistration reflectionRegistration,
boolean isApplicationClass,
String baseName) |
protected void |
implementEquals(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementGet(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator,
io.quarkus.arc.processor.BeanGenerator.ProviderType providerType,
String baseName) |
protected void |
implementGetAlternativePriority(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementGetBeanClass(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementGetDeclaringBean(io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementGetIdentifier(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementGetKind(io.quarkus.gizmo.ClassCreator beanCreator,
InjectableBean.Kind kind) |
protected void |
implementGetName(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementGetQualifiers(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator,
io.quarkus.gizmo.FieldDescriptor qualifiersField) |
protected void |
implementGetScope(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementGetStereotypes(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator,
io.quarkus.gizmo.FieldDescriptor stereotypesField) |
protected void |
implementGetTypes(io.quarkus.gizmo.ClassCreator beanCreator,
io.quarkus.gizmo.FieldDescriptor typesField) |
protected void |
implementHashCode(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementIsDefaultBean(BeanInfo bean,
io.quarkus.gizmo.ClassCreator beanCreator) |
protected void |
implementSupplierGet(io.quarkus.gizmo.ClassCreator beanCreator) |
protected io.quarkus.gizmo.MethodCreator |
initConstructor(io.quarkus.gizmo.ClassOutput classOutput,
io.quarkus.gizmo.ClassCreator beanCreator,
BeanInfo bean,
String baseName,
Map<InjectionPointInfo,String> injectionPointToProviderField,
Map<InterceptorInfo,String> interceptorToProviderField,
AnnotationLiteralProcessor annotationLiterals,
ReflectionRegistration reflectionRegistration) |
protected void |
initMaps(BeanInfo bean,
Map<InjectionPointInfo,String> injectionPointToProvider,
Map<InterceptorInfo,String> interceptorToProvider) |
protected boolean |
isPackagePrivate(int mod) |
protected boolean |
isReflectionFallbackNeeded(org.jboss.jandex.FieldInfo field,
String targetPackage) |
protected boolean |
isReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method,
String targetPackage) |
protected static final String FIELD_NAME_DECLARING_PROVIDER_SUPPLIER
protected static final String FIELD_NAME_BEAN_TYPES
protected static final String FIELD_NAME_QUALIFIERS
protected static final String FIELD_NAME_STEREOTYPES
protected static final String FIELD_NAME_PROXY
protected static final String FIELD_NAME_PARAMS
protected final AnnotationLiteralProcessor annotationLiterals
protected final Predicate<org.jboss.jandex.DotName> applicationClassPredicate
protected final io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers
protected final ReflectionRegistration reflectionRegistration
protected final Predicate<org.jboss.jandex.DotName> injectionPointAnnotationsPredicate
protected final boolean generateSources
public BeanGenerator(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)
protected void initMaps(BeanInfo bean, Map<InjectionPointInfo,String> injectionPointToProvider, Map<InterceptorInfo,String> interceptorToProvider)
protected void createProviderFields(io.quarkus.gizmo.ClassCreator beanCreator,
BeanInfo bean,
Map<InjectionPointInfo,String> injectionPointToProviderSupplier,
Map<InterceptorInfo,String> interceptorToProviderSupplier)
protected void createConstructor(io.quarkus.gizmo.ClassOutput classOutput,
io.quarkus.gizmo.ClassCreator beanCreator,
BeanInfo bean,
String baseName,
Map<InjectionPointInfo,String> injectionPointToProviderField,
Map<InterceptorInfo,String> interceptorToProviderField,
AnnotationLiteralProcessor annotationLiterals,
ReflectionRegistration reflectionRegistration)
protected io.quarkus.gizmo.MethodCreator initConstructor(io.quarkus.gizmo.ClassOutput classOutput,
io.quarkus.gizmo.ClassCreator beanCreator,
BeanInfo bean,
String baseName,
Map<InjectionPointInfo,String> injectionPointToProviderField,
Map<InterceptorInfo,String> interceptorToProviderField,
AnnotationLiteralProcessor annotationLiterals,
ReflectionRegistration reflectionRegistration)
protected void implementDestroy(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator, io.quarkus.arc.processor.BeanGenerator.ProviderType providerType, Map<InjectionPointInfo,String> injectionPointToProviderField, ReflectionRegistration reflectionRegistration, boolean isApplicationClass, String baseName)
protected void implementCreate(io.quarkus.gizmo.ClassOutput classOutput,
io.quarkus.gizmo.ClassCreator beanCreator,
BeanInfo bean,
io.quarkus.arc.processor.BeanGenerator.ProviderType providerType,
String baseName,
Map<InjectionPointInfo,String> injectionPointToProviderSupplierField,
Map<InterceptorInfo,String> interceptorToProviderSupplierField,
ReflectionRegistration reflectionRegistration,
String targetPackage,
boolean isApplicationClass)
protected void implementGet(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator, io.quarkus.arc.processor.BeanGenerator.ProviderType providerType, String baseName)
protected void implementGetTypes(io.quarkus.gizmo.ClassCreator beanCreator,
io.quarkus.gizmo.FieldDescriptor typesField)
beanCreator - InjectableBean.getTypes()protected void implementGetScope(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator)
bean - beanCreator - InjectableBean.getScope()protected void implementGetIdentifier(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator)
bean - beanCreator - InjectableBean.getIdentifier()protected void implementEquals(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator)
protected void implementHashCode(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator)
protected void implementGetQualifiers(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator, io.quarkus.gizmo.FieldDescriptor qualifiersField)
bean - beanCreator - qualifiersField - InjectableBean.getQualifiers()protected void implementGetDeclaringBean(io.quarkus.gizmo.ClassCreator beanCreator)
protected void implementGetAlternativePriority(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator)
protected void implementIsDefaultBean(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator)
protected void implementGetStereotypes(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator, io.quarkus.gizmo.FieldDescriptor stereotypesField)
protected void implementGetBeanClass(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator)
protected void implementGetName(BeanInfo bean, io.quarkus.gizmo.ClassCreator beanCreator)
protected void implementGetKind(io.quarkus.gizmo.ClassCreator beanCreator,
InjectableBean.Kind kind)
protected void implementSupplierGet(io.quarkus.gizmo.ClassCreator beanCreator)
protected boolean isReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method,
String targetPackage)
protected boolean isReflectionFallbackNeeded(org.jboss.jandex.FieldInfo field,
String targetPackage)
protected boolean isPackagePrivate(int mod)
Copyright © 2021 JBoss by Red Hat. All rights reserved.