Package org.citrusframework.container
Interface TemplateLoader
- 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
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:
-
loaders
-
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:
-