public class ObserverGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
generateSources |
| Constructor and Description |
|---|
ObserverGenerator(AnnotationLiteralProcessor annotationLiterals,
Predicate<org.jboss.jandex.DotName> applicationClassPredicate,
io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers,
boolean generateSources,
ReflectionRegistration reflectionRegistration,
Set<String> existingClasses,
Map<ObserverInfo,String> observerToGeneratedName,
Predicate<org.jboss.jandex.DotName> injectionPointAnnotationsPredicate,
boolean mockable) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createConstructor(io.quarkus.gizmo.ClassOutput classOutput,
io.quarkus.gizmo.ClassCreator observerCreator,
ObserverInfo observer,
String baseName,
Map<InjectionPointInfo,String> injectionPointToProviderField,
AnnotationLiteralProcessor annotationLiterals,
ReflectionRegistration reflectionRegistration) |
protected void |
createProviderFields(io.quarkus.gizmo.ClassCreator observerCreator,
ObserverInfo observer,
Map<InjectionPointInfo,String> injectionPointToProvider) |
protected String |
getBaseName(BeanInfo bean,
String beanClassName) |
protected String |
getPackageName(BeanInfo bean) |
protected void |
implementGetBeanClass(io.quarkus.gizmo.ClassCreator observerCreator,
org.jboss.jandex.DotName beanClass) |
protected void |
implementGetDeclaringBeanIdentifier(io.quarkus.gizmo.ClassCreator observerCreator,
BeanInfo declaringBean) |
protected void |
implementGetObservedQualifiers(io.quarkus.gizmo.ClassCreator observerCreator,
io.quarkus.gizmo.FieldDescriptor observedQualifiersField) |
protected void |
implementGetObservedType(io.quarkus.gizmo.ClassCreator observerCreator,
io.quarkus.gizmo.FieldDescriptor observedTypeField) |
protected void |
implementGetPriority(io.quarkus.gizmo.ClassCreator observerCreator,
ObserverInfo observer) |
protected void |
implementGetTransactionPhase(io.quarkus.gizmo.ClassCreator observerCreator,
ObserverInfo observer) |
protected void |
implementIsAsync(io.quarkus.gizmo.ClassCreator observerCreator) |
protected void |
implementNotify(ObserverInfo observer,
io.quarkus.gizmo.ClassCreator observerCreator,
Map<InjectionPointInfo,String> injectionPointToProviderField,
ReflectionRegistration reflectionRegistration,
boolean isApplicationClass) |
protected void |
initMaps(ObserverInfo observer,
Map<InjectionPointInfo,String> injectionPointToProvider) |
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) |
public ObserverGenerator(AnnotationLiteralProcessor annotationLiterals, Predicate<org.jboss.jandex.DotName> applicationClassPredicate, io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers, boolean generateSources, ReflectionRegistration reflectionRegistration, Set<String> existingClasses, Map<ObserverInfo,String> observerToGeneratedName, Predicate<org.jboss.jandex.DotName> injectionPointAnnotationsPredicate, boolean mockable)
protected void initMaps(ObserverInfo observer, Map<InjectionPointInfo,String> injectionPointToProvider)
protected void implementGetObservedType(io.quarkus.gizmo.ClassCreator observerCreator,
io.quarkus.gizmo.FieldDescriptor observedTypeField)
protected void implementGetObservedQualifiers(io.quarkus.gizmo.ClassCreator observerCreator,
io.quarkus.gizmo.FieldDescriptor observedQualifiersField)
protected void implementGetTransactionPhase(io.quarkus.gizmo.ClassCreator observerCreator,
ObserverInfo observer)
protected void implementGetBeanClass(io.quarkus.gizmo.ClassCreator observerCreator,
org.jboss.jandex.DotName beanClass)
protected void implementGetPriority(io.quarkus.gizmo.ClassCreator observerCreator,
ObserverInfo observer)
protected void implementIsAsync(io.quarkus.gizmo.ClassCreator observerCreator)
protected void implementGetDeclaringBeanIdentifier(io.quarkus.gizmo.ClassCreator observerCreator,
BeanInfo declaringBean)
protected void implementNotify(ObserverInfo observer, io.quarkus.gizmo.ClassCreator observerCreator, Map<InjectionPointInfo,String> injectionPointToProviderField, ReflectionRegistration reflectionRegistration, boolean isApplicationClass)
protected void createProviderFields(io.quarkus.gizmo.ClassCreator observerCreator,
ObserverInfo observer,
Map<InjectionPointInfo,String> injectionPointToProvider)
protected void createConstructor(io.quarkus.gizmo.ClassOutput classOutput,
io.quarkus.gizmo.ClassCreator observerCreator,
ObserverInfo observer,
String baseName,
Map<InjectionPointInfo,String> injectionPointToProviderField,
AnnotationLiteralProcessor annotationLiterals,
ReflectionRegistration reflectionRegistration)
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.