KickJava   Java API By Example, From Geeks To Geeks.

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


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.util.Collection JavaDoc;
8 import org.exoplatform.services.cache.CacheService;
9 import org.exoplatform.services.cache.ExoCache;
10
11 /**
12  * Created by The eXo Platform SARL .
13  * Author : Tuan Nguyen
14  * tuan08@users.sourceforge.net
15  * Sat, Sep 13, 2003 @
16  * Time: 1:12:22 PM
17  */

18 public class MockCacheService implements CacheService {
19   
20   private MockExoCache mockCache_ ;
21    
22   public MockCacheService() {
23     mockCache_ = new MockExoCache();
24   }
25   
26   public ExoCache getCacheInstance(String JavaDoc region) throws Exception JavaDoc {
27     return mockCache_ ;
28   }
29   
30   public Collection JavaDoc getAllCacheInstances() throws Exception JavaDoc {
31     return null ;
32   }
33 }
34
35
Popular Tags