Class ContextAssetFactory
java.lang.Object
org.apache.tapestry5.internal.services.AbstractAssetFactory
org.apache.tapestry5.internal.services.ContextAssetFactory
- All Implemented Interfaces:
AssetFactory
Implementation of
AssetFactory
for assets that are part of the web application context.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContextAssetFactory
(ResponseCompressionAnalyzer compressionAnalyzer, ResourceChangeTracker resourceChangeTracker, StreamableResourceSource streamableResourceSource, AssetPathConstructor assetPathConstructor, Context context) -
Method Summary
Modifier and TypeMethodDescriptioncreateAsset
(Resource resource) Creates an instance of an asset.Methods inherited from class org.apache.tapestry5.internal.services.AbstractAssetFactory
createAsset, getRootResource, isCompressable
-
Constructor Details
-
ContextAssetFactory
public ContextAssetFactory(ResponseCompressionAnalyzer compressionAnalyzer, ResourceChangeTracker resourceChangeTracker, StreamableResourceSource streamableResourceSource, AssetPathConstructor assetPathConstructor, Context context)
-
-
Method Details
-
createAsset
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
-