net.sourceforge.wurfl.core.cache
Class NullCacheProvider

java.lang.Object
  extended by net.sourceforge.wurfl.core.cache.NullCacheProvider
All Implemented Interfaces:
CacheProvider

public class NullCacheProvider
extends Object
implements CacheProvider

A Nop CacheProvider implementation.

This implementation is mainly used for testing purposes, it do not anything and return always null.

Version:
$Id: NullCacheProvider.java 432 2010-05-06 12:12:53Z filippo.deluca $
Author:
Fantayeneh Asres Gizaw, Filippo De Luca

Constructor Summary
NullCacheProvider()
           
 
Method Summary
 void clear()
          Remove all items from cache.
 Object get(Object key)
          Returns the cached item.
 void put(Object key, Object value)
          Put an item in cache associated to a key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCacheProvider

public NullCacheProvider()
Method Detail

clear

public void clear()
Description copied from interface: CacheProvider
Remove all items from cache.

Specified by:
clear in interface CacheProvider

get

public Object get(Object key)
Description copied from interface: CacheProvider
Returns the cached item.

Specified by:
get in interface CacheProvider
Parameters:
key - The cached item key.
Returns:
null always.

put

public void put(Object key,
                Object value)
Description copied from interface: CacheProvider
Put an item in cache associated to a key.

Specified by:
put in interface CacheProvider
Parameters:
key - The caching item key.
value - The caching item.


Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.