Class ExternalUrlAssetFactory
- java.lang.Object
-
- org.apache.tapestry5.internal.services.ExternalUrlAssetFactory
-
- All Implemented Interfaces:
AssetFactory
public class ExternalUrlAssetFactory extends java.lang.Object implements AssetFactory
-
-
Constructor Summary
Constructors Constructor Description ExternalUrlAssetFactory(java.lang.String protocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetcreateAsset(Resource resource)Creates an instance of an asset.ResourcegetRootResource()Returns the Resource representing the root folder of the domain this factory is responsible for.
-
-
-
Constructor Detail
-
ExternalUrlAssetFactory
public ExternalUrlAssetFactory(java.lang.String protocol)
-
-
Method Detail
-
getRootResource
public Resource getRootResource()
Description copied from interface:AssetFactoryReturns the Resource representing the root folder of the domain this factory is responsible for.- Specified by:
getRootResourcein interfaceAssetFactory
-
createAsset
public Asset createAsset(Resource resource)
Description copied from interface:AssetFactoryCreates an instance of an asset.- Specified by:
createAssetin interfaceAssetFactory- Parameters:
resource- a resource within this factories domain (derived from the root resource)- Returns:
- an Asset for the resource
-
-