@Override public Object instantiate(String className) throws ReflectionException, MBeanException { Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = false; try { //Special authorization authorizeClassloadingOperation(delegate, INSTANTIATE); return delegate.instantiate(className); } catch (Exception e) { error = e; if (e instanceof ReflectionException) throw (ReflectionException)e; if (e instanceof MBeanException) throw (MBeanException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).instantiate(className); } } }
@Override public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException { Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = false; try { //Special authorization authorizeClassloadingOperation(delegate, INSTANTIATE); return delegate.instantiate(className, loaderName); } catch (Exception e) { error = e; if (e instanceof ReflectionException) throw (ReflectionException)e; if (e instanceof MBeanException) throw (MBeanException)e; if (e instanceof InstanceNotFoundException) throw (InstanceNotFoundException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).instantiate(className, loaderName); } } }
@Override public Object instantiate(String className) throws ReflectionException, MBeanException { Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = false; try { if (delegate.shouldAuthorize()) { authorizeSuperUserOrAdministrator(INSTANTIATE); } return delegate.instantiate(className); } catch (Exception e) { error = e; if (e instanceof ReflectionException) throw (ReflectionException)e; if (e instanceof MBeanException) throw (MBeanException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).instantiate(className); } } }
@Override public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException { Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = false; try { if (delegate.shouldAuthorize()) { authorizeSuperUserOrAdministrator(INSTANTIATE); } return delegate.instantiate(className, loaderName); } catch (Exception e) { error = e; if (e instanceof ReflectionException) throw (ReflectionException)e; if (e instanceof MBeanException) throw (MBeanException)e; if (e instanceof InstanceNotFoundException) throw (InstanceNotFoundException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).instantiate(className, loaderName); } } }
@Override public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException { params = nullAsEmpty(params); signature = nullAsEmpty(signature); Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = false; try { //Special authorization authorizeClassloadingOperation(delegate, INSTANTIATE); return delegate.instantiate(className, params, signature); } catch (Exception e) { error = e; if (e instanceof ReflectionException) throw (ReflectionException)e; if (e instanceof MBeanException) throw (MBeanException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).instantiate(className, params, signature); } } }
@Override public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException { params = nullAsEmpty(params); signature = nullAsEmpty(signature); Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = false; try { //Special authorization authorizeClassloadingOperation(delegate, loaderName, INSTANTIATE); return delegate.instantiate(className, loaderName, params, signature); } catch (Exception e) { error = e; if (e instanceof ReflectionException) throw (ReflectionException)e; if (e instanceof MBeanException) throw (MBeanException)e; if (e instanceof InstanceNotFoundException) throw (InstanceNotFoundException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).instantiate(className, loaderName, params, signature); } } }
@Override public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException { params = nullAsEmpty(params); signature = nullAsEmpty(signature); Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = false; try { if (delegate.shouldAuthorize()) { authorizeSuperUserOrAdministrator(INSTANTIATE); } return delegate.instantiate(className, params, signature); } catch (Exception e) { error = e; if (e instanceof ReflectionException) throw (ReflectionException)e; if (e instanceof MBeanException) throw (MBeanException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).instantiate(className, params, signature); } } }
@Override public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException { params = nullAsEmpty(params); signature = nullAsEmpty(signature); Throwable error = null; MBeanServerPlugin delegate = rootMBeanServer; final boolean readOnly = false; try { if (delegate.shouldAuthorize()) { authorizeSuperUserOrAdministrator(INSTANTIATE); } return delegate.instantiate(className, loaderName, params, signature); } catch (Exception e) { error = e; if (e instanceof ReflectionException) throw (ReflectionException)e; if (e instanceof MBeanException) throw (MBeanException)e; if (e instanceof InstanceNotFoundException) throw (InstanceNotFoundException)e; throw makeRuntimeException(e); } finally { if (shouldAuditLog(delegate, readOnly)) { new MBeanServerAuditLogRecordFormatter(this, error, readOnly).instantiate(className, loaderName, params, signature); } } }