Package io.quarkus.arc.processor
Class ObserverGenerator
java.lang.Object
io.quarkus.arc.processor.ObserverGenerator
- Author:
- Martin Kouba
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObserverGenerator(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringgetBeanBaseName(String beanClassName) Returns a simple name of the givenbeanClassName, stripped of theBeanGenerator.BEAN_SUFFIX.protected final booleanisReflectionFallbackNeeded(org.jboss.jandex.FieldInfo field, String targetPackage, BeanInfo bean) protected final booleanisReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method, String targetPackage)
-
Field Details
-
generateSources
protected final boolean generateSources -
reflectionRegistration
-
-
Constructor Details
-
ObserverGenerator
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)
-
-
Method Details
-
getBeanBaseName
Returns a simple name of the givenbeanClassName, stripped of theBeanGenerator.BEAN_SUFFIX.- Returns:
- a simple name of the given
beanClassName, stripped of theBeanGenerator.BEAN_SUFFIX
-
isReflectionFallbackNeeded
protected final boolean isReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method, String targetPackage) -
isReflectionFallbackNeeded
-