Interface CustomAnnotationTemplateCreator


public interface CustomAnnotationTemplateCreator
Instances of this are found via the service loader during compilation time and called by the io.helidon.inject.processor.CustomAnnotationProcessor. It should be noted that this contract may be called multiple times since annotation processing naturally happens over multiple iterations.
  • Method Summary

    Modifier and Type
    Method
    Description
    These are the set of annotation types that will trigger a call this producer.
    Optional<io.helidon.inject.tools.CustomAnnotationTemplateResponse>
    create(io.helidon.inject.tools.CustomAnnotationTemplateRequest request)
    The implementor should return empty if the request should not be handled.
  • Method Details

    • annoTypes

      Set<TypeName> annoTypes()
      These are the set of annotation types that will trigger a call this producer.
      Returns:
      the supported annotation types for this producer
    • create

      Optional<io.helidon.inject.tools.CustomAnnotationTemplateResponse> create(io.helidon.inject.tools.CustomAnnotationTemplateRequest request)
      The implementor should return empty if the request should not be handled.
      Parameters:
      request - the request
      Returns:
      the response that will describe what template to produce, or empty to to cause processing to skip