Package org.citrusframework.container
Interface TemplateLoader<T extends TestAction>
- All Superinterfaces:
ReferenceResolverAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerLoggerstatic final StringFunction resource lookup pathstatic final TypeResolverType resolver to find custom message validators on classpath via resource path lookup -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears the type cache.Loads the template from given file.static Optional<TemplateLoader<?>>Resolves template loader from resource path lookup with given resource name.Methods inherited from interface org.citrusframework.spi.ReferenceResolverAware
setReferenceResolver
-
Field Details
-
logger
static final org.slf4j.Logger loggerLogger -
RESOURCE_PATH
Function resource lookup path- See Also:
-
TYPE_RESOLVER
Type resolver to find custom message validators on classpath via resource path lookup
-
-
Method Details
-
lookup
Resolves template loader from resource path lookup with given resource name. Scans classpath for meta information with given name and returns an instance of the loader. Returns optional instead of throwing exception when no template loader could be found.- Parameters:
name-- Returns:
-
load
Loads the template from given file.- Parameters:
filePath-- Returns:
-
clearCache
static void clearCache()Clears the type cache. Required when dynamically loading additional artifacts to the classpath.
-