private MBeanInfo getMBeanInfo(ObjectName name, boolean logAndAuthorize, boolean nullIfNotFound) throws InstanceNotFoundException, IntrospectionException, ReflectionException {
Throwable error = null;
MBeanServerPlugin delegate = null;
final boolean readOnly = true;
try {
delegate = findDelegate(name);
if (logAndAuthorize) {
authorizeMBeanOperation(delegate, name, GET_MBEAN_INFO, null, JmxAction.Impact.READ_ONLY);
}
return delegate.getMBeanInfo(name);
} catch (Exception e) {
if (nullIfNotFound) {
return null;
}
error = e;
if (e instanceof InstanceNotFoundException) throw (InstanceNotFoundException)e;
if (e instanceof IntrospectionException) throw (IntrospectionException)e;
if (e instanceof ReflectionException) throw (ReflectionException)e;
throw makeRuntimeException(e);
} finally {
if (logAndAuthorize && shouldAuditLog(delegate, readOnly)) {
new MBeanServerAuditLogRecordFormatter(this, error, readOnly).getMBeanInfo(name);
}
}
}
PluggableMBeanServerImpl.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:wildfly-core
作者:
评论列表
文章目录