public class ContextAssetFactory extends AbstractAssetFactory
AssetFactory
for assets that are part of the web application context.ContextResource
Constructor and Description |
---|
ContextAssetFactory(ResponseCompressionAnalyzer compressionAnalyzer,
ResourceChangeTracker resourceChangeTracker,
StreamableResourceSource streamableResourceSource,
AssetPathConstructor assetPathConstructor,
Context context) |
Modifier and Type | Method and Description |
---|---|
Asset |
createAsset(Resource resource)
Creates an instance of an asset.
|
createAsset, getRootResource, isCompressable
public ContextAssetFactory(ResponseCompressionAnalyzer compressionAnalyzer, ResourceChangeTracker resourceChangeTracker, StreamableResourceSource streamableResourceSource, AssetPathConstructor assetPathConstructor, Context context)
public Asset createAsset(Resource resource)
AssetFactory
Asset2
.resource
- a resource within this factories domain (derived from the root
resource)5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.