org.apache.tapestry5.internal.services
Class AssetResourceLocatorImpl

java.lang.Object
  extended by org.apache.tapestry5.internal.services.AssetResourceLocatorImpl
All Implemented Interfaces:
AssetResourceLocator

public class AssetResourceLocatorImpl
extends Object
implements AssetResourceLocator


Constructor Summary
AssetResourceLocatorImpl(ClasspathAssetAliasManager aliasManager, ResourceCache resourceCache, String applicationVersion, AssetFactory contextAssetFactory, Response response)
           
 
Method Summary
 Resource findResourceForPath(String path)
          Analyzes the path and identifies the underying Asset Resource for that path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetResourceLocatorImpl

public AssetResourceLocatorImpl(ClasspathAssetAliasManager aliasManager,
                                ResourceCache resourceCache,
                                @Inject@Symbol(value="tapestry.application-version")
                                String applicationVersion,
                                @ContextProvider
                                AssetFactory contextAssetFactory,
                                Response response)
Method Detail

findResourceForPath

public Resource findResourceForPath(String path)
                             throws IOException
Description copied from interface: AssetResourceLocator
Analyzes the path and identifies the underying Asset Resource for that path. Handles context resources and checking for a digest.

Specified by:
findResourceForPath in interface AssetResourceLocator
Parameters:
path - to translate
Returns:
resource corresponding to path (may be for a non-existent resource), or null if path is invalid (i.e., incorrect digest)
Throws:
IOException


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.