Interface TemplateLoader<T extends TestAction>

All Superinterfaces:
ReferenceResolverAware

public interface TemplateLoader<T extends TestAction> extends ReferenceResolverAware
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
    Logger
    static final String
    Function resource lookup path
    static final TypeResolver
    Type resolver to find custom message validators on classpath via resource path lookup
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Clears the type cache.
    load(String filePath)
    Loads the template from given file.
    lookup(String name)
    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 logger
      Logger
    • RESOURCE_PATH

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

      static final TypeResolver TYPE_RESOLVER
      Type resolver to find custom message validators on classpath via resource path lookup
  • Method Details

    • lookup

      static Optional<TemplateLoader<?>> lookup(String name)
      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

      T load(String filePath)
      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.