org.apache.tapestry5.internal.services
Class ClasspathAssetFactory
java.lang.Object
org.apache.tapestry5.internal.services.ClasspathAssetFactory
- All Implemented Interfaces:
- AssetFactory, InvalidationListener
public class ClasspathAssetFactory
- extends Object
- implements AssetFactory, InvalidationListener
Generates Assets for files on the classpath. Caches generated client URLs internally, and clears that cache when
notified to do so by the ResourceCache.
- See Also:
AssetDispatcher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathAssetFactory
public ClasspathAssetFactory(ResourceCache cache,
ClasspathAssetAliasManager aliasManager)
objectWasInvalidated
public void objectWasInvalidated()
- Description copied from interface:
InvalidationListener
- Invoked to indicate that some object is invalid. The receiver should clear its cache.
- Specified by:
objectWasInvalidated in interface InvalidationListener
createAsset
public Asset createAsset(Resource resource)
- Specified by:
createAsset in interface AssetFactory
getRootResource
public Resource getRootResource()
- Description copied from interface:
AssetFactory
- Returns the Resource representing the root folder of the domain this factory is responsible for.
- Specified by:
getRootResource in interface AssetFactory
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.