private static Object get(Class[] interfaces, ObjectName name, MBeanServer server) throws MBeanProxyCreationException { return Proxy.newProxyInstance( Thread.currentThread().getContextClassLoader(), interfaces, new JMXInvocationHandler(server, name) ); }
return handleObjectMethods(method, args); return handleDynamicMBeanInvocation(method, args); String classType = info.getType(); if (isPrimitive(classType)) signatureClass = getPrimitiveClass(classType); else signatureClass = cl.loadClass(info.getType()); return getExceptionHandler().handleInstanceNotFound(this, e, method, args); return getExceptionHandler().handleAttributeNotFound(this, e, method, args); return getExceptionHandler().handleInvalidAttributeValue(this, e, method, args); return getExceptionHandler().handleMBeanException(this, e, method, args); return getExceptionHandler().handleReflectionException(this, e, method, args); return getExceptionHandler().handleRuntimeOperationsException(this, e, method, args); return getExceptionHandler().handleRuntimeMBeanException(this, e, method, args); return getExceptionHandler().handleRuntimeError(this, e, method, args);
return server.invoke(objectName, "toString", null, null); else return toString();