org.castor.cache.simple
Class NoCache

java.lang.Object
  extended by org.castor.cache.AbstractBaseCache
      extended by org.castor.cache.simple.NoCache
All Implemented Interfaces:
Map<Object,Object>, Cache

public final class NoCache
extends AbstractBaseCache

NoCache is a Map which dispose all object right the way. Every object being put in the Map will be disposed.

Since:
1.0
Version:
$Revision: 8102 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Werner Guttmann, Ralf Joachim

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static String TYPE
          The type of the cache.
 
Fields inherited from interface org.castor.cache.Cache
DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE
 
Constructor Summary
NoCache()
           
 
Method Summary
 void clear()
          
 boolean containsKey(Object key)
          
 boolean containsValue(Object value)
          
 Set<Map.Entry<Object,Object>> entrySet()
          
 Object get(Object key)
          
 String getType()
          Indicates the type of this cache.
 boolean isEmpty()
          
 Set<Object> keySet()
          
 Object put(Object key, Object value)
          
 void putAll(Map<? extends Object,? extends Object> map)
          
 Object remove(Object key)
          
 int size()
          
 Collection<Object> values()
          
 
Methods inherited from class org.castor.cache.AbstractBaseCache
close, expire, expireAll, getName, initialize, invokeMethod, invokeStaticMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

TYPE

public static final String TYPE
The type of the cache.

See Also:
Constant Field Values
Constructor Detail

NoCache

public NoCache()
Method Detail

getType

public String getType()
Indicates the type of this cache.

Returns:
The cache type.

size

public int size()


isEmpty

public boolean isEmpty()


containsKey

public boolean containsKey(Object key)


containsValue

public boolean containsValue(Object value)


get

public Object get(Object key)


put

public Object put(Object key,
                  Object value)


remove

public Object remove(Object key)


putAll

public void putAll(Map<? extends Object,? extends Object> map)


clear

public void clear()


keySet

public Set<Object> keySet()


values

public Collection<Object> values()


entrySet

public Set<Map.Entry<Object,Object>> entrySet()



Copyright © 2010. All Rights Reserved.