org.alfresco.repo.cache
Class NullCache

java.lang.Object
  extended by org.alfresco.repo.cache.NullCache
All Implemented Interfaces:
org.alfresco.repo.cache.SimpleCache

public class NullCache
extends java.lang.Object
implements org.alfresco.repo.cache.SimpleCache

A cache that does nothing - always.

There are conditions under which code that expects to be caching, should not be. Using this cache, it becomes possible to configure a valid cache in whilst still ensuring that the actual caching is not performed.


Constructor Summary
NullCache()
           
 
Method Summary
 void clear()
          NO-OP
 boolean contains(java.io.Serializable key)
          NO-OP
 java.lang.Object get(java.io.Serializable key)
          NO-OP
 java.util.Collection getKeys()
           
 void put(java.io.Serializable key, java.lang.Object value)
          NO-OP
 void remove(java.io.Serializable key)
          NO-OP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCache

public NullCache()
Method Detail

contains

public boolean contains(java.io.Serializable key)
NO-OP

Specified by:
contains in interface org.alfresco.repo.cache.SimpleCache

getKeys

public java.util.Collection getKeys()
Specified by:
getKeys in interface org.alfresco.repo.cache.SimpleCache

get

public java.lang.Object get(java.io.Serializable key)
NO-OP

Specified by:
get in interface org.alfresco.repo.cache.SimpleCache

put

public void put(java.io.Serializable key,
                java.lang.Object value)
NO-OP

Specified by:
put in interface org.alfresco.repo.cache.SimpleCache

remove

public void remove(java.io.Serializable key)
NO-OP

Specified by:
remove in interface org.alfresco.repo.cache.SimpleCache

clear

public void clear()
NO-OP

Specified by:
clear in interface org.alfresco.repo.cache.SimpleCache


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.