1 17 package org.apache.geronimo.kernel.basic; 18 19 import org.apache.geronimo.gbean.AbstractNameQuery; 20 import org.apache.geronimo.kernel.lifecycle.LifecycleListener; 21 import org.apache.geronimo.kernel.lifecycle.LifecycleMonitor; 22 23 import java.util.Set ; 24 25 28 public class LifecycleMonitorFlyweight implements LifecycleMonitor { 29 private final LifecycleMonitor lifecycleMonitor; 30 31 public LifecycleMonitorFlyweight(LifecycleMonitor lifecycleMonitor) { 32 this.lifecycleMonitor = lifecycleMonitor; 33 } 34 35 public void addLifecycleListener(LifecycleListener listener, AbstractNameQuery query) { 36 lifecycleMonitor.addLifecycleListener(listener, query); 37 } 38 39 public void addLifecycleListener(LifecycleListener listener, Set patterns) { 40 lifecycleMonitor.addLifecycleListener(listener, patterns); 41 } 42 43 public void removeLifecycleListener(LifecycleListener listener) { 44 lifecycleMonitor.removeLifecycleListener(listener); 45 } 46 } 47 | Popular Tags |