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

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

public class JBossCacheCacheEntry<T>
extends java.lang.Object
implements CacheEntry<T>

Implements CacheEntry based on JBossCache.

Version:
$Id$

Constructor Summary
JBossCacheCacheEntry(Cache<T> cache, java.lang.String key, T data)
           
 
Method Summary
 Cache<T> getCache()
          
 java.lang.String getKey()
          
 T getValue()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossCacheCacheEntry

public JBossCacheCacheEntry(Cache<T> cache,
                            java.lang.String key,
                            T data)
Parameters:
cache - the cache where this entry comes from.
key - the entry key.
data - the entry data.
Method Detail

getCache

public Cache<T> getCache()

Specified by:
getCache in interface CacheEntry<T>
See Also:
CacheEntry.getCache()

getValue

public T getValue()

Specified by:
getValue in interface CacheEntry<T>
See Also:
CacheEntry.getValue()

getKey

public java.lang.String getKey()

Specified by:
getKey in interface CacheEntry<T>
See Also:
CacheEntry.getKey()


Copyright © 2004-2011 XWiki. All Rights Reserved.