Interface DeploymentTransformer


  • @Deprecated(forRemoval=false)
    public interface DeploymentTransformer
    Deprecated.
    Performs transformation operations on deployment content.

    This interface is experimental and may be removed or altered at any time.

    • Method Detail

      • transform

        InputStream transform​(InputStream in,
                              String name)
                       throws IOException
        Deprecated.
        Perform transformation of streamed deployment content.
        Parameters:
        in - InputStream containing the deployment content to be transformed.
        name - the name of the deployment
        Returns:
        an input stream from which the transformed content can be read.
        Throws:
        IOException - if a problem occurs reading or writing the content
      • transform

        void transform​(Path src,
                       Path target)
                throws IOException
        Deprecated.
        Perform transformation of filesystem deployment content.
        Parameters:
        src - path of the deployment content to be transformed
        target - path of either the file to which the transformed content should be written or to the directory in which it should be written. If the latter the name of the written file will be the same as the name of the src file. Note also that target can be the same path as src, in which case the file at src will be replaced.
        Throws:
        IOException - if a problem occurs reading or writing the content