Interface AnnotationConfigParser<A extends Annotation,T extends Endpoint>


public interface AnnotationConfigParser<A extends Annotation,T extends Endpoint>
Since:
2.5
Author:
Christoph Deppisch
  • Field Details

  • Method Details

    • parse

      T parse(A annotation, ReferenceResolver referenceResolver)
      Parse given annotation to a proper endpoint instance.
      Parameters:
      annotation -
      referenceResolver -
      Returns:
    • lookup

      static Map<String,AnnotationConfigParser> lookup()
      Resolves all available annotation config parsers from resource path lookup. Scans classpath for annotation config parser meta information and instantiates those parsers.
      Returns:
    • lookup

      static Optional<AnnotationConfigParser> lookup(String parser)
      Resolves annotation config parser from resource path lookup with given resource name. Scans classpath for annotation config parser meta information with given name and returns instance of the parser. Returns optional instead of throwing exception when no annotation config parser could be found. Given parser name is a combination of resource file name and type property separated by '.' character.
      Parameters:
      parser -
      Returns: