Interface ScriptPayloadBuilder

All Superinterfaces:
MessagePayloadBuilder

public interface ScriptPayloadBuilder extends MessagePayloadBuilder
Author:
Christoph Deppisch
  • Field Details

    • logger

      static final org.slf4j.Logger logger
      Logger
    • RESOURCE_PATH

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

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

    • lookup

      static <T extends ScriptPayloadBuilder> Optional<T> lookup(String type)
      Resolves processor from resource path lookup with given processor resource name. Scans classpath for processor meta information with given name and returns instance of processor. Returns optional instead of throwing exception when no processor could be found.
      Parameters:
      type -
      Returns:
    • setScript

      void setScript(String script)
    • setFile

      void setFile(String file)
    • setFile

      void setFile(String file, String charset)