public class ResourceTransformerFactoryImpl extends Object implements ResourceTransformerFactory
Constructor and Description |
---|
ResourceTransformerFactoryImpl(org.slf4j.Logger logger,
OperationTracker tracker,
boolean productionMode,
String cacheDir) |
Modifier and Type | Method and Description |
---|---|
void |
createCacheDir(boolean restrictive) |
ResourceTransformer |
createCompiler(String contentType,
String sourceName,
String targetName,
ResourceTransformer transformer,
CacheMode cacheMode)
Constructs a compiler around a another ResourceTransformer implementation.
|
public ResourceTransformerFactoryImpl(org.slf4j.Logger logger, OperationTracker tracker, @Symbol(value="tapestry.production-mode") boolean productionMode, @Symbol(value="tapestry.compiled-asset-cache-dir") String cacheDir)
@PostInjection public void createCacheDir(@Symbol(value="tapestry.restrictive-environment") boolean restrictive)
public ResourceTransformer createCompiler(String contentType, String sourceName, String targetName, ResourceTransformer transformer, CacheMode cacheMode)
ResourceTransformerFactory
createCompiler
in interface ResourceTransformerFactory
sourceName
- for debugging: source name, e.g., "Less"targetName
- for debugging: target name, e.g., "CSS"transformer
- performs the actual workcacheMode
- Indicates if and how the compiled content should be cached (in development mode only)${project.version} - Copyright © 2003-2015 The Apache Software Foundation.