org.apache.cocoon.caching
Class CacheValidityToSourceValidity

java.lang.Object
  extended by org.apache.cocoon.caching.CacheValidityToSourceValidity
All Implemented Interfaces:
Serializable, SourceValidity

Deprecated. Use the Avalon Excalibur SourceValidity implementations instead

public final class CacheValidityToSourceValidity
extends Object
implements SourceValidity

A CacheValidity object wrapping the Avalon Excalibur SourceValidity object.

Since:
2.1
Version:
CVS $Id: CacheValidityToSourceValidity.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler
See Also:
Serialized Form

Field Summary
protected  CacheValidity cacheValidity
          Deprecated.  
 
Fields inherited from interface org.apache.excalibur.source.SourceValidity
INVALID, UNKNOWN, VALID
 
Constructor Summary
protected CacheValidityToSourceValidity(CacheValidity validity)
          Deprecated. Constructor
 
Method Summary
static CacheValidityToSourceValidity createValidity(CacheValidity validity)
          Deprecated. Create a new instance
 int isValid()
          Deprecated. Check if the component is still valid.
 int isValid(SourceValidity newValidity)
          Deprecated. Check if the component is still valid.
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cacheValidity

protected CacheValidity cacheValidity
Deprecated. 
Constructor Detail

CacheValidityToSourceValidity

protected CacheValidityToSourceValidity(CacheValidity validity)
Deprecated. 
Constructor

Method Detail

createValidity

public static CacheValidityToSourceValidity createValidity(CacheValidity validity)
Deprecated. 
Create a new instance


isValid

public int isValid()
Deprecated. 
Check if the component is still valid. If 0 is returned the isValid(SourceValidity) must be called afterwards! If -1 is returned, the component is not valid anymore and if +1 is returnd, the component is valid.

Specified by:
isValid in interface SourceValidity

isValid

public int isValid(SourceValidity newValidity)
Deprecated. 
Check if the component is still valid. This is only true, if the incoming Validity is of the same type and has the same values. The invocation order is that the isValid method of the old Validity object is called with the new one as a parameter

Specified by:
isValid in interface SourceValidity

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.