org.apache.tapestry.asset
Class ResourceDigestSourceImpl
java.lang.Object
org.apache.tapestry.asset.ResourceDigestSourceImpl
- All Implemented Interfaces:
- EventListener, ResourceDigestSource, ReportStatusListener, ResetEventListener
public class ResourceDigestSourceImpl
- extends Object
- implements ResourceDigestSource, ResetEventListener, ReportStatusListener
Implementation of ResourceDigestSource
that calculates an
DIGEST checksum digest and converts it to a string of hex digits.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceDigestSourceImpl
public ResourceDigestSourceImpl()
getDigestForResource
public String getDigestForResource(String resourcePath)
- Description copied from interface:
ResourceDigestSource
- Calculates the DIGEST checksum for a classpath resource. Because this is expensive, the value
may be cached.
- Specified by:
getDigestForResource
in interface ResourceDigestSource
- Parameters:
resourcePath
- the classpath resource, which should start with a leading slash.
- Returns:
- A string representation of the digest for the provided resource path.
resetEventDidOccur
public void resetEventDidOccur()
- Specified by:
resetEventDidOccur
in interface ResetEventListener
reportStatus
public void reportStatus(ReportStatusEvent event)
- Specified by:
reportStatus
in interface ReportStatusListener
setClassResolver
public void setClassResolver(org.apache.hivemind.ClassResolver classResolver)
setServiceId
public void setServiceId(String serviceId)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.