1 17 package org.apache.geronimo.system.jmx; 18 19 import net.sf.cglib.proxy.Callback; 20 import net.sf.cglib.proxy.MethodInterceptor; 21 import org.apache.geronimo.kernel.Kernel; 22 import org.apache.geronimo.kernel.basic.BasicProxyManager; 23 import org.apache.geronimo.gbean.AbstractName; 24 25 31 public class JMXProxyManager extends BasicProxyManager { 32 public JMXProxyManager(Kernel kernel) { 33 super(kernel); 34 } 35 36 protected Callback getMethodInterceptor(Class proxyType, Kernel kernel, AbstractName target) { 37 return new JMXProxyMethodInterceptor(proxyType, kernel, target); 38 } 39 40 protected void doDestroy(MethodInterceptor methodInterceptor) { 41 ((JMXProxyMethodInterceptor)methodInterceptor).destroy(); 42 } 43 44 protected AbstractName getAbstractName(MethodInterceptor methodInterceptor) { 45 return ((JMXProxyMethodInterceptor)methodInterceptor).getAbstractName(); 46 } 47 48 } 49 | Popular Tags |