1 22 package org.objectweb.petals.jbi.routing.mock; 23 24 import java.io.ObjectInputStream ; 25 import java.util.Set ; 26 27 import javax.management.Attribute ; 28 import javax.management.AttributeList ; 29 import javax.management.AttributeNotFoundException ; 30 import javax.management.InstanceAlreadyExistsException ; 31 import javax.management.InstanceNotFoundException ; 32 import javax.management.IntrospectionException ; 33 import javax.management.InvalidAttributeValueException ; 34 import javax.management.ListenerNotFoundException ; 35 import javax.management.MBeanException ; 36 import javax.management.MBeanInfo ; 37 import javax.management.MBeanRegistrationException ; 38 import javax.management.MBeanServer ; 39 import javax.management.NotCompliantMBeanException ; 40 import javax.management.NotificationFilter ; 41 import javax.management.NotificationListener ; 42 import javax.management.ObjectInstance ; 43 import javax.management.ObjectName ; 44 import javax.management.OperationsException ; 45 import javax.management.QueryExp ; 46 import javax.management.ReflectionException ; 47 import javax.management.loading.ClassLoaderRepository ; 48 49 53 public class MBeanServerMock implements MBeanServer { 54 55 public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException , InstanceAlreadyExistsException , MBeanRegistrationException , MBeanException , NotCompliantMBeanException { 56 return null; 57 } 58 59 public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException , InstanceAlreadyExistsException , MBeanRegistrationException , MBeanException , NotCompliantMBeanException , InstanceNotFoundException { 60 return null; 61 } 62 63 public ObjectInstance createMBean(String className, ObjectName name, Object [] params, String [] signature) throws ReflectionException , InstanceAlreadyExistsException , MBeanRegistrationException , MBeanException , NotCompliantMBeanException { 64 return null; 65 } 66 67 public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object [] params, String [] signature) throws ReflectionException , InstanceAlreadyExistsException , MBeanRegistrationException , MBeanException , NotCompliantMBeanException , InstanceNotFoundException { 68 return null; 69 } 70 71 public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException , MBeanRegistrationException , NotCompliantMBeanException { 72 return null; 73 } 74 75 public void unregisterMBean(ObjectName name) throws InstanceNotFoundException , MBeanRegistrationException { 76 } 77 78 public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException { 79 return null; 80 } 81 82 public Set queryMBeans(ObjectName name, QueryExp query) { 83 return null; 84 } 85 86 public Set queryNames(ObjectName name, QueryExp query) { 87 return null; 88 } 89 90 public boolean isRegistered(ObjectName name) { 91 return false; 92 } 93 94 public Integer getMBeanCount() { 95 return null; 96 } 97 98 public Object getAttribute(ObjectName name, String attribute) throws MBeanException , AttributeNotFoundException , InstanceNotFoundException , ReflectionException { 99 return null; 100 } 101 102 public AttributeList getAttributes(ObjectName name, String [] attributes) throws InstanceNotFoundException , ReflectionException { 103 return null; 104 } 105 106 public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException , AttributeNotFoundException , InvalidAttributeValueException , MBeanException , ReflectionException { 107 } 108 109 public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException , ReflectionException { 110 return null; 111 } 112 113 public Object invoke(ObjectName name, String operationName, Object [] params, String [] signature) throws InstanceNotFoundException , MBeanException , ReflectionException { 114 return null; 115 } 116 117 public String getDefaultDomain() { 118 return null; 119 } 120 121 public String [] getDomains() { 122 return null; 123 } 124 125 public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException { 126 } 127 128 public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException { 129 } 130 131 public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException , ListenerNotFoundException { 132 } 133 134 public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException , ListenerNotFoundException { 135 } 136 137 public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException , ListenerNotFoundException { 138 } 139 140 public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException , ListenerNotFoundException { 141 } 142 143 public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException , IntrospectionException , ReflectionException { 144 return null; 145 } 146 147 public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException { 148 return false; 149 } 150 151 public Object instantiate(String className) throws ReflectionException , MBeanException { 152 return null; 153 } 154 155 public Object instantiate(String className, ObjectName loaderName) throws ReflectionException , MBeanException , InstanceNotFoundException { 156 return null; 157 } 158 159 public Object instantiate(String className, Object [] params, String [] signature) throws ReflectionException , MBeanException { 160 return null; 161 } 162 163 public Object instantiate(String className, ObjectName loaderName, Object [] params, String [] signature) throws ReflectionException , MBeanException , InstanceNotFoundException { 164 return null; 165 } 166 167 public ObjectInputStream deserialize(ObjectName name, byte[] data) throws InstanceNotFoundException , OperationsException { 168 return null; 169 } 170 171 public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException , ReflectionException { 172 return null; 173 } 174 175 public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data) throws InstanceNotFoundException , OperationsException , ReflectionException { 176 return null; 177 } 178 179 public ClassLoader getClassLoaderFor(ObjectName mbeanName) throws InstanceNotFoundException { 180 return null; 181 } 182 183 public ClassLoader getClassLoader(ObjectName loaderName) throws InstanceNotFoundException { 184 return null; 185 } 186 187 public ClassLoaderRepository getClassLoaderRepository() { 188 return null; 189 } 190 191 } 192 | Popular Tags |