org.apache.tapestry5.internal.webresources

## Interface ResourceTransformerFactory

- All Known Implementing Classes:
    ResourceTransformerFactoryImpl

      public interface ResourceTransformerFactory

  Creates ResourceTransformer around a named `org.apache.tapestry5.webresources.services.ResourceProcessor`.
  Since:
    5.4
  See Also:
    `StreamableResourceSource`

- - ### Method Summary

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

- - ### Method Detail

    - #### createCompiler

          ResourceTransformer createCompiler(String contentType,
                                           String sourceName,
                                           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
      See Also:
        `org.apache.tapestry5.webresources.services.ResourceProcessorSource`

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