1 7 8 package com.sun.jmx.mbeanserver; 9 10 import javax.management.*; 11 import java.io.ObjectInputStream ; 12 13 21 public interface MBeanInstantiator { 22 23 28 public void testCreation(Class c) throws NotCompliantMBeanException; 29 30 34 public Class findClassWithDefaultLoaderRepository(String className) 35 throws ReflectionException; 36 37 38 41 public ModifiableClassLoaderRepository getClassLoaderRepository(); 42 43 47 public Class findClass(String className, ClassLoader loader) 48 throws ReflectionException; 49 50 54 public Class findClass(String className, ObjectName loaderName) 55 throws ReflectionException, InstanceNotFoundException ; 56 57 61 public Class [] findSignatureClasses(String signature[], 62 ClassLoader loader) 63 throws ReflectionException; 64 75 public ObjectInputStream deserialize(ClassLoader loader, byte[] data) 76 throws OperationsException; 77 78 102 public ObjectInputStream deserialize(String className, 103 ObjectName loaderName, 104 byte[] data, 105 ClassLoader loader) 106 throws InstanceNotFoundException, 107 OperationsException, 108 ReflectionException; 109 110 132 public Object instantiate(String className) 133 throws ReflectionException, 134 MBeanException; 135 136 162 public Object instantiate(String className, ObjectName loaderName, ClassLoader loader) 163 throws ReflectionException, 164 MBeanException, 165 InstanceNotFoundException; 166 167 193 public Object instantiate(String className, 194 Object params[], 195 String signature[], 196 ClassLoader loader) 197 throws ReflectionException, 198 MBeanException ; 199 200 201 232 public Object instantiate(String className, 233 ObjectName loaderName, 234 Object params[], 235 String signature[], 236 ClassLoader loader) 237 throws ReflectionException, 238 MBeanException, 239 InstanceNotFoundException; 240 241 242 246 public Object instantiate(Class theClass) throws ReflectionException, MBeanException; 247 248 249 253 public Object instantiate(Class theClass, Object params[], String signature[], ClassLoader loader) throws ReflectionException, MBeanException; 254 } 255 | Popular Tags |