org.apache.jackrabbit.ocm.manager.cache.impl
Class RequestObjectCacheImpl

java.lang.Object
  extended by org.apache.jackrabbit.ocm.manager.cache.impl.RequestObjectCacheImpl
All Implemented Interfaces:
ObjectCache

public class RequestObjectCacheImpl
extends Object
implements ObjectCache

This is a simple cache implementation that can be used per retrieve requests. This avoids to load duplicated object instance.

Author:
Lombart Christophe

Constructor Summary
RequestObjectCacheImpl()
           
 
Method Summary
 void cache(String path, Object object)
           
 void clear()
           
 Object getObject(String path)
           
 boolean isCached(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestObjectCacheImpl

public RequestObjectCacheImpl()
Method Detail

cache

public void cache(String path,
                  Object object)
Specified by:
cache in interface ObjectCache

clear

public void clear()
Specified by:
clear in interface ObjectCache

isCached

public boolean isCached(String path)
Specified by:
isCached in interface ObjectCache

getObject

public Object getObject(String path)
Specified by:
getObject in interface ObjectCache


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.