KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > AbstractCacheListener


1 /*
2  * JBoss, Home of Professional Open Source
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.cache;
8
9 import org.jgroups.View;
10
11 import java.util.Map JavaDoc;
12
13 /**
14  * An abstract implementation of {@link CacheListener} with no-op methods. Subclass this as a convenience to
15  * implementing all the methods in {@link CacheListener}.
16  *
17  * @author <a HREF="mailto:manik@jboss.org">Manik Surtani (manik@jboss.org)</a>
18  * @since 2.0.0
19  */

20 public abstract class AbstractCacheListener implements CacheListener
21 {
22    public void nodeCreated(Fqn fqn, boolean pre, boolean isLocal)
23    {
24    }
25
26    public void nodeModified(Fqn fqn, boolean pre, boolean isLocal, ModificationType modType, Map JavaDoc data)
27    {
28    }
29
30    public void nodeRemoved(Fqn fqn, boolean pre, boolean isLocal, Map JavaDoc data)
31    {
32    }
33
34    public void nodeVisited(Fqn fqn, boolean pre)
35    {
36    }
37
38    public void nodeEvicted(Fqn fqn, boolean pre, boolean isLocal)
39    {
40    }
41
42    public void nodeLoaded(Fqn fqn, boolean pre, Map JavaDoc data)
43    {
44    }
45
46    public void nodeMoved(Fqn from, Fqn to, boolean pre, boolean isLocal)
47    {
48    }
49
50    public void nodeActivated(Fqn fqn, boolean pre)
51    {
52    }
53
54    public void nodePassivated(Fqn fqn, boolean pre)
55    {
56    }
57
58    public void cacheStarted(CacheSPI cache)
59    {
60    }
61
62    public void cacheStopped(CacheSPI cache)
63    {
64    }
65
66    public void viewChange(View new_view)
67    {
68    }
69 }
70
Popular Tags