org.apache.cocoon.caching
Class CompositeCacheValidity

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

Deprecated. Use the Avalon Excalibur SourceValidity implementations instead

public final class CompositeCacheValidity
extends Object
implements CacheValidity

A validation object aggregating two validity objects. This is similar to the AggregatedCacheValidity with the difference that the amount of aggregated objects is limited.

Version:
CVS $Id: CompositeCacheValidity.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Davanum Srinivas
See Also:
Serialized Form

Constructor Summary
CompositeCacheValidity(CacheValidity v1, CacheValidity v2)
          Deprecated. Constructor
 
Method Summary
 CacheValidity getValidity1()
          Deprecated.  
 CacheValidity getValidity2()
          Deprecated.  
 boolean isValid(CacheValidity validity)
          Deprecated. Check if the component is still valid.
 String toString()
          Deprecated. Creates text represenation of the validity object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeCacheValidity

public CompositeCacheValidity(CacheValidity v1,
                              CacheValidity v2)
Deprecated. 
Constructor

Method Detail

isValid

public boolean isValid(CacheValidity validity)
Deprecated. 
Description copied from interface: CacheValidity
Check if the component is still valid. This is only true, if the incoming CacheValidity is of the same type and has the same values.

Specified by:
isValid in interface CacheValidity

getValidity1

public CacheValidity getValidity1()
Deprecated. 

getValidity2

public CacheValidity getValidity2()
Deprecated. 

toString

public String toString()
Deprecated. 
Description copied from interface: CacheValidity
Creates text represenation of the validity object. This is used to create fake 'lastModificationDate' for cocoon: sources.

Due to changes in source API, this method is no longer needed, starting with Cocoon 2.1.

Specified by:
toString in interface CacheValidity
Overrides:
toString in class Object


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