Project Wonder 5.0

er.extensions.foundation
Class ERXLazyValue.PageUserInfoCacheKeyInvalidator

java.lang.Object
  extended by er.extensions.foundation.ERXLazyValue.CacheKeyInvalidator
      extended by er.extensions.foundation.ERXLazyValue.MutableCacheKeyInvalidator
          extended by er.extensions.foundation.ERXLazyValue.PageUserInfoCacheKeyInvalidator
All Implemented Interfaces:
ERXLazyValue.Invalidator
Enclosing class:
ERXLazyValue<T>

public static class ERXLazyValue.PageUserInfoCacheKeyInvalidator
extends ERXLazyValue.MutableCacheKeyInvalidator

PageUserInfoCacheKeyInvalidator triggers a cache invalidation when the value of the specified key changes in the ERXResponseRewriter's pageUserInfo. This is useful for triggering cache refreshes based on ajax updates to other parts of the page.

Author:
mschrag

Constructor Summary
ERXLazyValue.PageUserInfoCacheKeyInvalidator(java.lang.String key)
           
 
Method Summary
protected  java.lang.Object cacheKey()
          Returns the current value of the cache key.
 void setCacheKey(java.lang.Object value)
          Sets the current value of the cache key.
 
Methods inherited from class er.extensions.foundation.ERXLazyValue.MutableCacheKeyInvalidator
timestamp, uuid
 
Methods inherited from class er.extensions.foundation.ERXLazyValue.CacheKeyInvalidator
fetchedValue, shouldInvalidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXLazyValue.PageUserInfoCacheKeyInvalidator

public ERXLazyValue.PageUserInfoCacheKeyInvalidator(java.lang.String key)
Method Detail

cacheKey

protected java.lang.Object cacheKey()
Description copied from class: ERXLazyValue.CacheKeyInvalidator
Returns the current value of the cache key.

Specified by:
cacheKey in class ERXLazyValue.CacheKeyInvalidator
Returns:
the current value of the cache key

setCacheKey

public void setCacheKey(java.lang.Object value)
Description copied from class: ERXLazyValue.MutableCacheKeyInvalidator
Sets the current value of the cache key.

Specified by:
setCacheKey in class ERXLazyValue.MutableCacheKeyInvalidator
Parameters:
value - the current value of the cache key

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.