org.apache.tapestry5.internal.webresources

## Interface ResourceTransformerFactory

- All Known Implementing Classes:
    ResourceTransformerFactoryImpl

      public interface ResourceTransformerFactory

  Wraps a `ResourceTransformer` to provide additional features such as caching.
  Since:
    5.4
  See Also:
    `StreamableResourceSource`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ResourceTransformer` | `createCompiler(java.lang.String contentType, java.lang.String sourceName, java.lang.String targetName, ResourceTransformer transformer, CacheMode cacheMode)` Constructs a compiler around a another ResourceTransformer implementation.

- - ### Method Detail

    - #### createCompiler

          ResourceTransformer createCompiler(java.lang.String contentType,
                                             java.lang.String sourceName,
                                             java.lang.String targetName,
                                             ResourceTransformer transformer,
                                             CacheMode cacheMode)

      Constructs a compiler around a another ResourceTransformer implementation. In development mode, the wrapped version will handle caching, as well as logging output of timing for the real implementation.
      Parameters:
        `sourceName` - for debugging: source name, e.g., "Less"
        `targetName` - for debugging: target name, e.g., "CSS"
        `transformer` - performs the actual work
        `cacheMode` - Indicates if and how the compiled content should be cached (in development mode only)
      Returns:
        transformer

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.