com.raritantechnologies.utils
Class CacheObject

java.lang.Object
  extended bycom.raritantechnologies.utils.CacheObject
All Implemented Interfaces:
IConfigurable

public class CacheObject
extends java.lang.Object
implements IConfigurable

Caching object used to check request parameter state for changes to certain set of parameters.


Constructor Summary
CacheObject()
           
CacheObject(java.util.Map recacheParams)
           
 
Method Summary
 java.lang.Object getCacheObject()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 boolean saveCacheParameters(java.util.List requestParams, RaritanPageContext pageContext, boolean cacheOnNullValue)
          returns true if a new set of parameters has been saved, false otherwise
 void setCacheObject(java.lang.Object object)
           
 boolean shouldCacheObject(java.util.Map currentParams)
          Returns true if there is any change in the parameter set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheObject

public CacheObject()

CacheObject

public CacheObject(java.util.Map recacheParams)
Method Detail

shouldCacheObject

public boolean shouldCacheObject(java.util.Map currentParams)
Returns true if there is any change in the parameter set.


saveCacheParameters

public boolean saveCacheParameters(java.util.List requestParams,
                                   RaritanPageContext pageContext,
                                   boolean cacheOnNullValue)
returns true if a new set of parameters has been saved, false otherwise


setCacheObject

public void setCacheObject(java.lang.Object object)

getCacheObject

public java.lang.Object getCacheObject()

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable