org.apache.tapestry5.internal.services
Class VirtualAssetStreamerImpl
java.lang.Object
org.apache.tapestry5.internal.services.VirtualAssetStreamerImpl
- All Implemented Interfaces:
- VirtualAssetStreamer, InvalidationListener
public class VirtualAssetStreamerImpl
- extends Object
- implements VirtualAssetStreamer, InvalidationListener
This implementation uses ResourceCache, but is also a listener of
invalidation events from ResourceCache. When a Asset resource changes, any cached data in this service is discarded.
- Since:
- 5.1.0.2
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VirtualAssetStreamerImpl
public VirtualAssetStreamerImpl(ResourceCache resourceCache,
ResponseCompressionAnalyzer compressionAnalyzer,
ClientDataEncoder clientDataEncoder,
AssetResourceLocator resourceLocator,
Request request,
Response response)
streamVirtualAsset
public void streamVirtualAsset(String clientData)
throws IOException
- Specified by:
streamVirtualAsset in interface VirtualAssetStreamer
- Throws:
IOException
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
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.