er.extensions.foundation
Class ERXLazyValue.NeverInvalidator
java.lang.Object
er.extensions.foundation.ERXLazyValue.NeverInvalidator
- All Implemented Interfaces:
- ERXLazyValue.Invalidator
- Enclosing class:
- ERXLazyValue<T>
public static class ERXLazyValue.NeverInvalidator
- extends Object
- implements ERXLazyValue.Invalidator
Returns false from shouldInvalidate, causing the cache to never refresh.
- Author:
- mschrag
|
Method Summary |
void |
fetchedValue(Object value)
Called when the lazy value is refetched from the source. |
boolean |
shouldInvalidate()
Returns whether or not the lazy value should invalidate its cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERXLazyValue.NeverInvalidator
public ERXLazyValue.NeverInvalidator()
fetchedValue
public void fetchedValue(Object value)
- Description copied from interface:
ERXLazyValue.Invalidator
- Called when the lazy value is refetched from the source.
- Specified by:
fetchedValue in interface ERXLazyValue.Invalidator
- Parameters:
value - the new value
shouldInvalidate
public boolean shouldInvalidate()
- Description copied from interface:
ERXLazyValue.Invalidator
- Returns whether or not the lazy value should invalidate its cache.
- Specified by:
shouldInvalidate in interface ERXLazyValue.Invalidator
- Returns:
- whether or not the lazy value should invalidate its cache
Copyright © 2002 – 2007 Project Wonder.