public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException { return instantiate(className, loaderName, NOPARAMS, NOSIG); }
public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException { return instantiate(className, (ClassLoader) null, params, signature); }
public Object instantiate(String className) throws ReflectionException, MBeanException { return instantiate(className, (ClassLoader) null, NOPARAMS, NOSIG); }
public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException { return instantiate(className, (ClassLoader) null, params, signature); }
public Object instantiate(String className) throws ReflectionException, MBeanException { return instantiate(className, (ClassLoader) null, NOPARAMS, NOSIG); }
public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException { return instantiate(className, loaderName, NOPARAMS, NOSIG); }
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException { try { Object mbean = instantiate(className, loaderName); return registerMBean(mbean, name, loaderName); } catch (ReflectionException refex) { return handleExceptionOnCreate(refex, className); } }
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException { try { Object mbean = instantiate(className, params, signature); return registerMBean(mbean, name, (ClassLoader) null); } catch (ReflectionException refex) { return handleExceptionOnCreate(refex, className); } }
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException { try { Object mbean = instantiate(className, loaderName); return registerMBean(mbean, name, loaderName); } catch (ReflectionException refex) { return handleExceptionOnCreate(refex, className); } }
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException { try { Object mbean = instantiate(className, loaderName, params, signature); return registerMBean(mbean, name, loaderName); } catch (ReflectionException refex) { return handleExceptionOnCreate(refex, className); } }
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException { try { Object mbean = instantiate(className, params, signature); return registerMBean(mbean, name, (ClassLoader) null); } catch (ReflectionException refex) { return handleExceptionOnCreate(refex, className); } }
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException { try { Object mbean = instantiate(className, loaderName, params, signature); return registerMBean(mbean, name, loaderName); } catch (ReflectionException refex) { return handleExceptionOnCreate(refex, className); } }
public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException { ClassLoader cl = null; // if instantiate() is called with null loader name, we use the cl that // loaded the MBean server (see javadoc) try { if (loaderName != null) cl = (ClassLoader) registry.get(loaderName).getResourceInstance(); } catch (ClassCastException e) { throw new ReflectionException(e, loaderName + " is not a class loader."); } if (cl == null) cl = this.getClass().getClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return instantiate(className, cl, params, signature); }
public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException { ClassLoader cl = null; // if instantiate() is called with null loader name, we use the cl that // loaded the MBean server (see javadoc) try { if (loaderName != null) cl = (ClassLoader) registry.get(loaderName).getResourceInstance(); } catch (ClassCastException e) { throw new ReflectionException(e, loaderName + " is not a class loader."); } if (cl == null) cl = this.getClass().getClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return instantiate(className, cl, params, signature); }
public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException { try { Object mbean = instantiate(className); return registerMBean(mbean, name, (ClassLoader) null); } catch (SecurityException e) { throw e; } catch (ReflectionException refex) { // Note, the CTS wants a NotCompliantMBeanException for this case if (refex.getCause() instanceof InstantiationException) throw new NotCompliantMBeanException("Cannot instanciate MBean: " + className); else throw refex; } }
public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException { try { Object mbean = instantiate(className); return registerMBean(mbean, name, (ClassLoader) null); } catch (SecurityException e) { throw e; } catch (ReflectionException refex) { // Note, the CTS wants a NotCompliantMBeanException for this case if (refex.getCause() instanceof InstantiationException) throw new NotCompliantMBeanException("Cannot instanciate MBean: " + className); else throw refex; } }