Class ObserverGenerator

java.lang.Object
io.quarkus.arc.processor.ObserverGenerator

public class ObserverGenerator extends Object
Author:
Martin Kouba
  • Field Details

    • generateSources

      protected final boolean generateSources
    • reflectionRegistration

      protected final ReflectionRegistration 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

      protected final String getBeanBaseName(String beanClassName)
      Returns a simple name of the given beanClassName, stripped of the BeanGenerator.BEAN_SUFFIX.
      Returns:
      a simple name of the given beanClassName, stripped of the BeanGenerator.BEAN_SUFFIX
    • isReflectionFallbackNeeded

      protected final boolean isReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method, String targetPackage)
    • isReflectionFallbackNeeded

      protected final boolean isReflectionFallbackNeeded(org.jboss.jandex.FieldInfo field, String targetPackage, BeanInfo bean)