org.compass.core.cache.first
Class NullFirstLevelCache

java.lang.Object
  extended by org.compass.core.cache.first.NullFirstLevelCache
All Implemented Interfaces:
FirstLevelCache

public class NullFirstLevelCache
extends Object
implements FirstLevelCache

A null first level cache, not storing anything.

Author:
kimchy

Constructor Summary
NullFirstLevelCache()
           
 
Method Summary
 void evict(ResourceKey key)
           
 void evictAll()
           
 Object get(ResourceKey key)
           
 Resource getResource(ResourceKey key)
           
 void set(ResourceKey key, Object obj)
           
 void setResource(ResourceKey key, Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullFirstLevelCache

public NullFirstLevelCache()
Method Detail

get

public Object get(ResourceKey key)
Specified by:
get in interface FirstLevelCache

getResource

public Resource getResource(ResourceKey key)
Specified by:
getResource in interface FirstLevelCache

set

public void set(ResourceKey key,
                Object obj)
Specified by:
set in interface FirstLevelCache

setResource

public void setResource(ResourceKey key,
                        Resource resource)
Specified by:
setResource in interface FirstLevelCache

evict

public void evict(ResourceKey key)
Specified by:
evict in interface FirstLevelCache

evictAll

public void evictAll()
Specified by:
evictAll in interface FirstLevelCache


Copyright (c) 2004-2008 The Compass Project.