Class ServiceAnnotationProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
io.helidon.pico.processor.ServiceAnnotationProcessor
All Implemented Interfaces:
Messager, Processor
Direct Known Subclasses:
ConfiguredByProcessor

public class ServiceAnnotationProcessor extends AbstractProcessor
Processor for @Singleton type annotations.
  • Constructor Details

    • ServiceAnnotationProcessor

      @Deprecated public ServiceAnnotationProcessor()
      Deprecated.
      this is a Java ServiceLoader implementation and the constructor should not be used directly
      Service loader based constructor.
  • Method Details

    • annoTypes

      protected Set<String> annoTypes()
      The annotation types we handle.
      Returns:
      annotation types we handle
    • contraAnnotations

      protected Set<String> contraAnnotations()
      If these annotation type names are found on the target then do not process.
      Returns:
      the set of annotation type names that should result in skipped processing for this processor type
    • process

      public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
      Specified by:
      process in interface Processor
    • init

      public void init(ProcessingEnvironment processingEnv)
      Specified by:
      init in interface Processor
      Overrides:
      init in class AbstractProcessor
    • getSupportedSourceVersion

      public SourceVersion getSupportedSourceVersion()
      Specified by:
      getSupportedSourceVersion in interface Processor
      Overrides:
      getSupportedSourceVersion in class AbstractProcessor
    • getSupportedAnnotationTypes

      public Set<String> getSupportedAnnotationTypes()
      Specified by:
      getSupportedAnnotationTypes in interface Processor
      Overrides:
      getSupportedAnnotationTypes in class AbstractProcessor
    • debug

      public void debug(String message, Throwable t)
      Description copied from interface: Messager
      Log a debug message.
      Specified by:
      debug in interface Messager
      Parameters:
      message - the message
      t - throwable
    • debug

      public void debug(String message)
      Description copied from interface: Messager
      Log a debug message.
      Specified by:
      debug in interface Messager
      Parameters:
      message - the message
    • log

      public void log(String message)
      Description copied from interface: Messager
      Log an info message.
      Specified by:
      log in interface Messager
      Parameters:
      message - the message
    • warn

      public void warn(String message, Throwable t)
      Description copied from interface: Messager
      Log a warning message.
      Specified by:
      warn in interface Messager
      Parameters:
      message - the message
      t - throwable
    • warn

      public void warn(String message)
      Description copied from interface: Messager
      Log a warning.
      Specified by:
      warn in interface Messager
      Parameters:
      message - the message
    • error

      public void error(String message, Throwable t)
      Description copied from interface: Messager
      Log an error message.
      Specified by:
      error in interface Messager
      Parameters:
      message - the message
      t - any throwable
    • processServiceType

      protected void processServiceType(TypeName serviceTypeName, TypeElement type)
      Called to process the service type definition to add the basic service info constructs.
      Parameters:
      serviceTypeName - the service type name
      type - the type element