Interface AnnotationConfigParser<A extends Annotation,T extends Endpoint>


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

    • logger

      static final org.slf4j.Logger logger
      Logger
    • RESOURCE_PATH

      static final String RESOURCE_PATH
      Endpoint parser resource lookup path
      See Also:
    • TYPE_RESOLVER

      static final TypeResolver TYPE_RESOLVER
      Default Citrus annotation config parsers from classpath resource properties
    • parsers

      static final Map<String,AnnotationConfigParser> parsers
  • 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:
    • clearCache

      static void clearCache()
      Clears the type cache. Required when dynamically loading additional artifacts to the classpath.