KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > impl > tree > AbstractJBossCacheListener


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.core.impl.tree;
10
11 import org.jboss.cache.TreeCacheListener;
12 import org.jboss.cache.Fqn;
13 import org.jboss.cache.TreeCache;
14 import org.jgroups.View;
15
16 /**
17  * Implementation that does nothing but does it well.
18  *
19  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
20  * @version $Revision: 1.1 $
21  */

22 public abstract class AbstractJBossCacheListener implements TreeCacheListener
23 {
24    /** The latest view. */
25    protected View view;
26
27    /** The cache when it is in started state only. */
28    protected TreeCache cache;
29
30    public void nodeCreated(Fqn fqn)
31    {
32    }
33
34    public void nodeRemoved(Fqn fqn)
35    {
36    }
37
38    public void nodeLoaded(Fqn fqn)
39    {
40    }
41
42    public void nodeEvicted(Fqn fqn)
43    {
44    }
45
46    public void nodeModified(Fqn fqn)
47    {
48    }
49
50    public void nodeVisited(Fqn fqn)
51    {
52    }
53
54    public void cacheStarted(TreeCache cache)
55    {
56       this.cache = cache;
57    }
58
59    public void cacheStopped(TreeCache cache)
60    {
61       this.cache = null;
62    }
63
64    public void viewChange(View view)
65    {
66       this.view = view;
67    }
68 }
69
Popular Tags