KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > cache > impl > MockExoCache


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.cache.impl;
6
7 import java.io.Serializable JavaDoc ;
8 import org.exoplatform.services.cache.ExoCache;
9 /**
10  * Created by The eXo Platform SARL .
11  * Author : Tuan Nguyen
12  * tuan08@users.sourceforge.net
13  */

14 public class MockExoCache implements ExoCache {
15
16   public MockExoCache() {
17   }
18   
19   public String JavaDoc getName() { return "cache" ; }
20   
21   public Object JavaDoc get(Serializable JavaDoc name) throws Exception JavaDoc {
22     return null ;
23   }
24   
25   public Object JavaDoc remove(Serializable JavaDoc name) throws Exception JavaDoc {
26     return null ;
27      
28   }
29
30   public void put(Serializable JavaDoc key, Object JavaDoc obj) throws Exception JavaDoc {
31   }
32
33   public void clear() throws Exception JavaDoc {
34   }
35   
36   public int getCacheSize() { return 0 ; }
37   
38   public int getMaxSize() { return 10 ; }
39   public void setMaxSize(int max) { }
40   
41   public int getCacheHit() { return 0 ;}
42   
43   public int getCacheMiss() { return 0 ; }
44 }
45
46
Popular Tags