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
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerLoggerstatic final Map<String,AnnotationConfigParser> static final StringEndpoint parser resource lookup pathstatic final ResourcePathTypeResolverDefault Citrus annotation config parsers from classpath resource properties -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,AnnotationConfigParser> lookup()Resolves all available annotation config parsers from resource path lookup.static Optional<AnnotationConfigParser>Resolves annotation config parser from resource path lookup with given resource name.parse(A annotation, ReferenceResolver referenceResolver) Parse given annotation to a proper endpoint instance.
-
Field Details
-
logger
static final org.slf4j.Logger loggerLogger -
RESOURCE_PATH
Endpoint parser resource lookup path- See Also:
-
TYPE_RESOLVER
Default Citrus annotation config parsers from classpath resource properties -
parsers
-
-
Method Details
-
parse
Parse given annotation to a proper endpoint instance.- Parameters:
annotation-referenceResolver-- Returns:
-
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
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:
-