org.apache.tapestry.asset
Class AssetSourceImpl

java.lang.Object
  extended byorg.apache.tapestry.asset.AssetSourceImpl
All Implemented Interfaces:
AssetSource

public class AssetSourceImpl
extends java.lang.Object
implements AssetSource

Implementation of the AssetSourceservice interface.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
AssetSourceImpl()
           
 
Method Summary
 IAsset findAsset(org.apache.hivemind.Resource base, java.lang.String path, java.util.Locale locale, org.apache.hivemind.Location location)
           
 void initializeService()
           
 void setContributions(java.util.List contributions)
          List of AssetFactoryContribution.
 void setDefaultAssetFactory(AssetFactory defaultAssetFactory)
          Factory used when an unrecognized prefix (typically, an arbitrary URL's scheme) is provided.
 void setLookupAssetFactory(AssetFactory lookupAssetFactory)
          Factory used when the path has no prefix, and the type of asset must be inferred from the type of resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetSourceImpl

public AssetSourceImpl()
Method Detail

initializeService

public void initializeService()

findAsset

public IAsset findAsset(org.apache.hivemind.Resource base,
                        java.lang.String path,
                        java.util.Locale locale,
                        org.apache.hivemind.Location location)
Specified by:
findAsset in interface AssetSource

setLookupAssetFactory

public void setLookupAssetFactory(AssetFactory lookupAssetFactory)
Factory used when the path has no prefix, and the type of asset must be inferred from the type of resource.


setContributions

public void setContributions(java.util.List contributions)
List of AssetFactoryContribution.


setDefaultAssetFactory

public void setDefaultAssetFactory(AssetFactory defaultAssetFactory)
Factory used when an unrecognized prefix (typically, an arbitrary URL's scheme) is provided.