Class AbstractCachingAwareObject
- java.lang.Object
-
- org.craftercms.core.util.cache.impl.AbstractCachingAwareObject
-
- All Implemented Interfaces:
CachingAwareObject
- Direct Known Subclasses:
CachingAwareList
,Item
public abstract class AbstractCachingAwareObject extends Object implements CachingAwareObject
Base abstract implementation ofCachingAwareObject
- Author:
- Alfonso Vásquez
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCachingAwareObject()
protected
AbstractCachingAwareObject(CachingAwareObject cachingAwareObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCachingTime()
Object
getKey()
String
getScope()
void
setCachingTime(Long cachingTime)
void
setKey(Object key)
void
setScope(String scope)
-
-
-
Constructor Detail
-
AbstractCachingAwareObject
protected AbstractCachingAwareObject()
-
AbstractCachingAwareObject
protected AbstractCachingAwareObject(CachingAwareObject cachingAwareObject)
-
-
Method Detail
-
getScope
public String getScope()
- Specified by:
getScope
in interfaceCachingAwareObject
-
setScope
public void setScope(String scope)
- Specified by:
setScope
in interfaceCachingAwareObject
-
getKey
public Object getKey()
- Specified by:
getKey
in interfaceCachingAwareObject
-
setKey
public void setKey(Object key)
- Specified by:
setKey
in interfaceCachingAwareObject
-
getCachingTime
public Long getCachingTime()
- Specified by:
getCachingTime
in interfaceCachingAwareObject
-
setCachingTime
public void setCachingTime(Long cachingTime)
- Specified by:
setCachingTime
in interfaceCachingAwareObject
-
-