Interface TemplateProvider


public interface TemplateProvider
Helper class provides access to the templates that construct the Pipe resource. Subclasses may overwrite the provider to inject their own templates.
  • Method Details

    • getPipeTemplate

      default InputStream getPipeTemplate()
    • getStepTemplate

      default InputStream getStepTemplate(String stepType)
    • getEndpointTemplate

      default InputStream getEndpointTemplate(String endpointType)
    • getErrorHandlerTemplate

      default InputStream getErrorHandlerTemplate(String type)
    • asEndpointProperties

      default String asEndpointProperties(Map<String,Object> props)
      Creates YAML snippet representing the endpoint properties section.
      Parameters:
      props - the properties to set as endpoint properties.
      Returns:
    • asErrorHandlerParameters

      default String asErrorHandlerParameters(Map<String,Object> props)
      Creates YAML snippet representing the error handler parameters section.
      Parameters:
      props - the properties to set as error handler parameters.
    • getAdditionalIndent

      default int getAdditionalIndent(BindingProvider.EndpointType type)
      Get additional indent that should be applied to endpoint templates.
      Parameters:
      type - the endpoint type.
      Returns: