1 4 package test.mx4j.server; 5 6 import java.util.List ; 7 8 import javax.management.NotificationListener ; 9 import javax.management.NotificationFilter ; 10 import javax.management.ListenerNotFoundException ; 11 import javax.management.ReflectionException ; 12 import javax.management.MBeanException ; 13 import javax.management.MBeanRegistrationException ; 14 import javax.management.MBeanInfo ; 15 import javax.management.AttributeList ; 16 import javax.management.AttributeNotFoundException ; 17 import javax.management.Attribute ; 18 import javax.management.InvalidAttributeValueException ; 19 20 import mx4j.server.interceptor.MBeanServerInterceptor; 21 import mx4j.server.MBeanMetaData; 22 23 26 public class NoOpMBeanServerInterceptor implements MBeanServerInterceptor 27 { 28 public String getType() 29 { 30 return "noop"; 31 } 32 33 public void setChain(List interceptors) 34 { 35 } 36 37 public void addNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback) 38 { 39 } 40 41 public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener) throws ListenerNotFoundException 42 { 43 } 44 45 public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException 46 { 47 } 48 49 public void instantiate(MBeanMetaData metadata, String className, String [] params, Object [] args) throws ReflectionException , MBeanException 50 { 51 } 52 53 public void registration(MBeanMetaData metadata, int operation) throws MBeanRegistrationException 54 { 55 } 56 57 public MBeanInfo getMBeanInfo(MBeanMetaData metadata) 58 { 59 return null; 60 } 61 62 public Object invoke(MBeanMetaData metadata, String method, String [] params, Object [] args) throws MBeanException , ReflectionException 63 { 64 return null; 65 } 66 67 public AttributeList getAttributes(MBeanMetaData metadata, String [] attributes) 68 { 69 return null; 70 } 71 72 public AttributeList setAttributes(MBeanMetaData metadata, AttributeList attributes) 73 { 74 return null; 75 } 76 77 public Object getAttribute(MBeanMetaData metadata, String attribute) throws MBeanException , AttributeNotFoundException , ReflectionException 78 { 79 return null; 80 } 81 82 public void setAttribute(MBeanMetaData metadata, Attribute attribute) throws MBeanException , AttributeNotFoundException , InvalidAttributeValueException , ReflectionException 83 { 84 } 85 } 86 | Popular Tags |