|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.cache.EhCacheProvider
public class EhCacheProvider
CacheProvider's EhCache implementation.
Add EhCache support to WURFL api. for more info visit the EHCache site
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.wurfl.core.cache.CacheProvider |
|---|
logger |
| Constructor Summary | |
|---|---|
EhCacheProvider()
Default Constructor |
|
EhCacheProvider(net.sf.ehcache.Cache cache)
Constructor by EhCache cache |
|
EhCacheProvider(EhCacheManager mgr)
Simple custom constructor |
|
| Method Summary | |
|---|---|
void |
clear()
Remove all items from cache. |
net.sf.ehcache.Cache |
getCache()
Returns the held cache. |
Device |
getDevice(String key)
Returns the cached item. |
Device |
getDeviceFromDeviceId(String deviceId)
Returns the cached device, from the deviceId. |
void |
putDevice(String key,
Device value)
Put an item in cache associated to a key. |
void |
setCache(net.sf.ehcache.Cache cache)
Set the underlying cache instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EhCacheProvider()
public EhCacheProvider(net.sf.ehcache.Cache cache)
cache - Cache instance.public EhCacheProvider(EhCacheManager mgr)
mgr - | Method Detail |
|---|
public net.sf.ehcache.Cache getCache()
Cache instance.public void setCache(net.sf.ehcache.Cache cache)
cache - The EhCache Cache instance.public void clear()
clear in interface CacheProviderpublic Device getDevice(String key)
getDevice in interface CacheProviderkey - The cached item key.
public void putDevice(String key,
Device value)
putDevice in interface CacheProviderkey - The caching item key.value - The caching item.public Device getDeviceFromDeviceId(String deviceId)
CacheProvider
getDeviceFromDeviceId in interface CacheProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||