org.xwiki.cache.jbosscache.internal
Class JBossCacheCache<T>

java.lang.Object
  extended by org.xwiki.cache.util.AbstractCache<T>
      extended by org.xwiki.cache.jbosscache.internal.JBossCacheCache<T>
Type Parameters:
T - the class of the data stored in the cache.
All Implemented Interfaces:
Cache<T>

public class JBossCacheCache<T>
extends AbstractCache<T>

Implements Cache based on JBossCache.

Version:
$Id$

Field Summary
static org.jboss.cache.Fqn<java.lang.String> ROOT_FQN
          The root FQN.
 
Fields inherited from class org.xwiki.cache.util.AbstractCache
cacheEntryListeners, configuration
 
Constructor Summary
JBossCacheCache()
           
 
Method Summary
 void dispose()
          
 T get(java.lang.String key)
          
 void initialize(JBossCacheCacheConfiguration jbosscacheConfiguration)
          Create and initialize the cache.
 void nodeEvicted(org.jboss.cache.notifications.event.NodeEvictedEvent event)
           
 void nodeModified(org.jboss.cache.notifications.event.NodeModifiedEvent event)
           
 void nodeRemoved(org.jboss.cache.notifications.event.NodeRemovedEvent event)
           
 void remove(java.lang.String key)
          
 void removeAll()
          
 void set(java.lang.String key, T obj)
          
 
Methods inherited from class org.xwiki.cache.util.AbstractCache
addCacheEntryListener, disposeCacheValue, removeCacheEntryListener, sendEntryAddedEvent, sendEntryModifiedEvent, sendEntryRemovedEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_FQN

public static final org.jboss.cache.Fqn<java.lang.String> ROOT_FQN
The root FQN.

Constructor Detail

JBossCacheCache

public JBossCacheCache()
Method Detail

initialize

public void initialize(JBossCacheCacheConfiguration jbosscacheConfiguration)
Create and initialize the cache.

Parameters:
jbosscacheConfiguration - the configuration to use to create the cache.

remove

public void remove(java.lang.String key)

See Also:
Cache.remove(java.lang.String)

set

public void set(java.lang.String key,
                T obj)

See Also:
Cache.set(java.lang.String, java.lang.Object)

get

public T get(java.lang.String key)

See Also:
Cache.get(java.lang.String)

removeAll

public void removeAll()

See Also:
Cache.removeAll()

dispose

public void dispose()

Specified by:
dispose in interface Cache<T>
Overrides:
dispose in class AbstractCache<T>
See Also:
AbstractCache.dispose()

nodeEvicted

public void nodeEvicted(org.jboss.cache.notifications.event.NodeEvictedEvent event)
Parameters:
event - the eviction event.

nodeRemoved

public void nodeRemoved(org.jboss.cache.notifications.event.NodeRemovedEvent event)
Parameters:
event - the eviction event.

nodeModified

public void nodeModified(org.jboss.cache.notifications.event.NodeModifiedEvent event)
Parameters:
event - the modification event.


Copyright © 2004-2011 XWiki. All Rights Reserved.