Class ContextAssetFactory
- java.lang.Object
-
- org.apache.tapestry5.internal.services.AbstractAssetFactory
-
- org.apache.tapestry5.internal.services.ContextAssetFactory
-
- All Implemented Interfaces:
AssetFactory
public class ContextAssetFactory extends AbstractAssetFactory
Implementation ofAssetFactory
for assets that are part of the web application context.- See Also:
ContextResource
-
-
Constructor Summary
Constructors Constructor Description ContextAssetFactory(ResponseCompressionAnalyzer compressionAnalyzer, ResourceChangeTracker resourceChangeTracker, StreamableResourceSource streamableResourceSource, AssetPathConstructor assetPathConstructor, Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Asset
createAsset(Resource resource)
Creates an instance of an asset.-
Methods inherited from class org.apache.tapestry5.internal.services.AbstractAssetFactory
createAsset, getRootResource, isCompressable
-
-
-
-
Constructor Detail
-
ContextAssetFactory
public ContextAssetFactory(ResponseCompressionAnalyzer compressionAnalyzer, ResourceChangeTracker resourceChangeTracker, StreamableResourceSource streamableResourceSource, AssetPathConstructor assetPathConstructor, Context context)
-
-
Method Detail
-
createAsset
public Asset createAsset(Resource resource)
Description copied from interface:AssetFactory
Creates an instance of an asset.- Parameters:
resource
- a resource within this factories domain (derived from the root resource)- Returns:
- an Asset for the resource
-
-