Interface AnnotationConfigParser<A extends Annotation,T extends Endpoint>
-
public interface AnnotationConfigParser<A extends Annotation,T extends Endpoint>- Since:
- 2.5
- Author:
- Christoph Deppisch
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGLoggerstatic Map<String,AnnotationConfigParser>parsersstatic StringRESOURCE_PATHEndpoint parser resource lookup pathstatic ResourcePathTypeResolverTYPE_RESOLVERDefault Citrus annotation config parsers from classpath resource properties
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Map<String,AnnotationConfigParser>lookup()Resolves all available annotation config parsers from resource path lookup.static Optional<AnnotationConfigParser>lookup(String parser)Resolves annotation config parser from resource path lookup with given resource name.Tparse(A annotation, ReferenceResolver referenceResolver)Parse given annotation to a proper endpoint instance.
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
Logger
-
RESOURCE_PATH
static final String RESOURCE_PATH
Endpoint parser resource lookup path- See Also:
- Constant Field Values
-
TYPE_RESOLVER
static final ResourcePathTypeResolver TYPE_RESOLVER
Default Citrus annotation config parsers from classpath resource properties
-
parsers
static final Map<String,AnnotationConfigParser> parsers
-
-
Method Detail
-
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:
-
-