|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.cache.CmsVfsMemoryObjectCache
public final class CmsVfsMemoryObjectCache
Implements a memory cache, that stores objects related to VFS files, providing a cache for the "online" and another for the "offline" project.
Field Summary |
---|
Method Summary | |
---|---|
void |
cmsEvent(CmsEvent event)
Acknowledge the occurrence of the specified event, implement this method to check for CmsEvents in your class. |
java.lang.Object |
getCachedObject(CmsObject cms,
java.lang.String rootPath)
Return an object from the cache. |
static CmsVfsMemoryObjectCache |
getVfsMemoryObjectCache()
Returns the VFS memory Object cache. |
void |
putCachedObject(CmsObject cms,
java.lang.String rootPath,
java.lang.Object value)
Puts an object into the cache. |
protected void |
registerEventListener()
Registers all required event listeners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CmsVfsMemoryObjectCache getVfsMemoryObjectCache()
public void cmsEvent(CmsEvent event)
I_CmsEventListener
cmsEvent
in interface I_CmsEventListener
event
- CmsEvent that has occurredI_CmsEventListener.cmsEvent(org.opencms.main.CmsEvent)
public java.lang.Object getCachedObject(CmsObject cms, java.lang.String rootPath)
cms
- the current users OpenCms contextrootPath
- the rootPath of the VFS resource to get the object for
public void putCachedObject(CmsObject cms, java.lang.String rootPath, java.lang.Object value)
cms
- the CmsObjectrootPath
- the rootPath of the VFS resource to store the object forvalue
- the object to storeprotected void registerEventListener()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |