net.sf.ashkay.strategies
Class NullCachingStrategy

java.lang.Object
  extended bynet.sf.ashkay.strategies.SoftReferenceCachingStrategy
      extended bynet.sf.ashkay.strategies.NullCachingStrategy
All Implemented Interfaces:
CachingStrategy

public class NullCachingStrategy
extends SoftReferenceCachingStrategy

NullCachingStrategy prevents the cache from caching any data about the object


Constructor Summary
NullCachingStrategy()
           
 
Method Summary
 boolean validate(CacheEntry entry)
          Always returns false.
 
Methods inherited from class net.sf.ashkay.strategies.SoftReferenceCachingStrategy
prepare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCachingStrategy

public NullCachingStrategy()
Method Detail

validate

public boolean validate(CacheEntry entry)
Always returns false.

Specified by:
validate in interface CachingStrategy
Overrides:
validate in class SoftReferenceCachingStrategy
Parameters:
entry - - the entry to validate
Returns:
false to force factory loads each time.


Copyright © 2004 . All Rights Reserved.