Package org.onebusaway.container.cache
Class DefaultCacheableObjectKeyFactory
- java.lang.Object
-
- org.onebusaway.container.cache.DefaultCacheableObjectKeyFactory
-
- All Implemented Interfaces:
Serializable,CacheableObjectKeyFactory
public class DefaultCacheableObjectKeyFactory extends Object implements CacheableObjectKeyFactory, Serializable
Factory for producing aSerializablecache key from a and arbitrary object. This default implementation just uses theObject.toString()representation of the object as the cache key.- Author:
- bdferris
- See Also:
CacheableObjectKeyFactory,DefaultCacheableKeyFactory, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultCacheableObjectKeyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheKeyInfocreateKey(Object object)booleanisCacheRefreshCheck()voidsetCacheRefreshCheck(boolean cacheRefreshCheck)Set to true if we should check the object value to indicate a cache refresh.
-
-
-
Method Detail
-
setCacheRefreshCheck
public void setCacheRefreshCheck(boolean cacheRefreshCheck)
Set to true if we should check the object value to indicate a cache refresh. A cache refresh will be flagged if the object value is equal toBoolean.TRUE.- Parameters:
cacheRefreshCheck- true if the object argument should be examined to flag a cache refresh
-
isCacheRefreshCheck
public boolean isCacheRefreshCheck()
-
createKey
public CacheKeyInfo createKey(Object object)
- Specified by:
createKeyin interfaceCacheableObjectKeyFactory
-
-