KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > whirlycott > cache > policy > NullPolicy


1 /*
2  * Created on Oct 18, 2004 by pjacob
3  *
4  */

5 package com.whirlycott.cache.policy;
6
7 import com.whirlycott.cache.CacheConfiguration;
8 import com.whirlycott.cache.CacheMaintenancePolicy;
9 import com.whirlycott.cache.ManagedCache;
10
11 /**
12  * This policy does nothing and is sometimes useful for debugging.
13  *
14  * @author pjacob
15  *
16  */

17 public class NullPolicy implements CacheMaintenancePolicy {
18
19     /**
20      *
21      */

22     public NullPolicy() {
23         super();
24     }
25
26     /* (non-Javadoc)
27      * @see com.whirlycott.cache.CacheMaintenancePolicy#setCache(com.whirlycott.cache.ManagedCache)
28      */

29     public void setCache(ManagedCache _cache) {
30
31     }
32
33     /* (non-Javadoc)
34      * @see com.whirlycott.cache.CacheMaintenancePolicy#setConfiguration(com.whirlycott.cache.CacheConfiguration)
35      */

36     public void setConfiguration(CacheConfiguration _configuration) {
37
38     }
39
40     /* (non-Javadoc)
41      * @see com.whirlycott.cache.CacheMaintenancePolicy#performMaintenance()
42      */

43     public void performMaintenance() {
44
45     }
46
47 }
48
Popular Tags