com.flexive.shared.cache.impl
Class AbstractJBossTreeCacheWrapper

java.lang.Object
  extended by com.flexive.shared.cache.impl.AbstractJBossTreeCacheWrapper
All Implemented Interfaces:
FxBackingCache
Direct Known Subclasses:
FxJBossTreeCacheMBeanWrapper, FxJBossTreeCacheWrapper

public abstract class AbstractJBossTreeCacheWrapper
extends java.lang.Object
implements FxBackingCache

Base implementation of JBoss Cache wrappers.

Version:
$Rev: 2919 $
Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at), Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Field Summary
 
Fields inherited from interface com.flexive.shared.cache.FxBackingCache
SYSTEM_UP_KEY
 
Constructor Summary
AbstractJBossTreeCacheWrapper()
           
 
Method Summary
 boolean exists(java.lang.String path, java.lang.Object key)
          Checks if the given key exists under the given path.
 java.lang.Object get(java.lang.String path, java.lang.Object key)
          Reads a entry from the division cache that the current request is in.
 java.util.Set getChildrenNames(java.lang.String path)
          Get all child nodes for a path
 java.util.Set getKeys(java.lang.String path)
          Get all keys for a path
protected  org.jboss.cache.Node<java.lang.Object,java.lang.Object> getNode(java.lang.String path)
           
 void put(java.lang.String path, java.lang.Object key, java.lang.Object value)
          Puts a entry into the cache of the division the current request is in.
 void remove(java.lang.String path)
          Removes from the cache of the division the current request is in.
 void remove(java.lang.String path, java.lang.Object key)
          Removes a entry from the cache of the division the current request is in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.flexive.shared.cache.FxBackingCache
getCache
 

Constructor Detail

AbstractJBossTreeCacheWrapper

public AbstractJBossTreeCacheWrapper()
Method Detail

get

public java.lang.Object get(java.lang.String path,
                            java.lang.Object key)
                     throws FxCacheException
Reads a entry from the division cache that the current request is in.

Specified by:
get in interface FxBackingCache
Parameters:
path - path
key - key
Returns:
entry
Throws:
FxCacheException - on errors

exists

public boolean exists(java.lang.String path,
                      java.lang.Object key)
               throws FxCacheException
Checks if the given key exists under the given path.

Specified by:
exists in interface FxBackingCache
Parameters:
path - path
key - key
Returns:
entry
Throws:
FxCacheException - on errors

put

public void put(java.lang.String path,
                java.lang.Object key,
                java.lang.Object value)
         throws FxCacheException
Puts a entry into the cache of the division the current request is in.

Specified by:
put in interface FxBackingCache
Parameters:
path - path
key - key
value - value
Throws:
FxCacheException - on errors

remove

public void remove(java.lang.String path)
            throws FxCacheException
Removes from the cache of the division the current request is in.

Specified by:
remove in interface FxBackingCache
Parameters:
path - path
Throws:
FxCacheException - on errors

remove

public void remove(java.lang.String path,
                   java.lang.Object key)
            throws FxCacheException
Removes a entry from the cache of the division the current request is in.

Specified by:
remove in interface FxBackingCache
Parameters:
path - path
key - key
Throws:
FxCacheException - on errors

getKeys

public java.util.Set getKeys(java.lang.String path)
                      throws FxCacheException
Get all keys for a path

Specified by:
getKeys in interface FxBackingCache
Parameters:
path - path
Returns:
set of keys
Throws:
FxCacheException - on errors

getChildrenNames

public java.util.Set getChildrenNames(java.lang.String path)
                               throws FxCacheException
Get all child nodes for a path

Specified by:
getChildrenNames in interface FxBackingCache
Parameters:
path - path
Returns:
set of child names
Throws:
FxCacheException - on errors

getNode

protected org.jboss.cache.Node<java.lang.Object,java.lang.Object> getNode(java.lang.String path)
                                                                   throws FxCacheException
Throws:
FxCacheException