/** * Registers a pre-existing object as an MBean with the MBean server. If the object name given is null, * the MBean must provide its own name by implementing the MBeanRegistration interface and returning the name * from the preRegister method. */ public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { return registerMBean(object, name, (ClassLoader) null); }
/** * Registers a pre-existing object as an MBean with the MBean server. If the object name given is null, * the MBean must provide its own name by implementing the MBeanRegistration interface and returning the name * from the preRegister method. */ public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { return registerMBean(object, name, (ClassLoader) null); }
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, 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, 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); } }
return registerMBean(mbean, name, cl);
return registerMBean(mbean, name, cl);
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; } }