1 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 22 public abstract class AbstractJBossCacheListener implements TreeCacheListener 23 { 24 25 protected View view; 26 27 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 |