/** Return the MBeanInfo from the invocation MBeanInvoker * * @param invocation * @return * @throws InvocationException */ public Object invoke(Invocation invocation) throws Throwable { MBeanInvoker invoker = invocation.getInvoker(); return invoker.getMetaData(); } }
static void setContextClassLoader(Thread thread, ClassLoader cl) { getTCLAction().setContextClassLoader(thread, cl); } }
static ClassLoader getContextClassLoader() { return getTCLAction().getContextClassLoader(); }
public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException { return instantiate(className, loaderName, NOPARAMS, NOSIG); }
/** * 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 Class[] getSignatureClasses() throws ClassNotFoundException { return ctx.getSignatureClasses(); } }
/** */ public void preDeregister() throws Exception { invokePreDeregister(); }
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) { addNotificationListenerToResource(listener, filter, handback); }
/** * Constructs a mapper by reflecting on the class. */ public MethodMapper(Class resourceClass) { map = createMap(resourceClass); }
/** */ public void postDeregister() { invokePostDeregister(); this.server = null; this.objectName = null; }
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException { removeNotificationListenerFromResource(listener); }
/** */ public void postRegister(Boolean registrationSuccessful) { invokePostRegister(registrationSuccessful); }
static void setContextClassLoader(ClassLoader cl) { getTCLAction().setContextClassLoader(cl); }
static ClassLoader getContextClassLoader(Thread thread) { return getTCLAction().getContextClassLoader(thread); }
/** Return the MBeanInfo from the invocation MBeanInvoker * * @param invocation * @return the value * @throws Throwable for any error */ public Object invoke(Invocation invocation) throws Throwable { MBeanInvoker invoker = invocation.getInvoker(); return invoker.getMetaData(); } }
public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException { return instantiate(className, (ClassLoader) null, params, signature); }
static void setContextClassLoader(Thread thread, ClassLoader cl) { getTCLAction().setContextClassLoader(thread, cl); } }
static ClassLoader getContextClassLoader() { return getTCLAction().getContextClassLoader(); }
static void setContextClassLoader(ClassLoader cl) { getTCLAction().setContextClassLoader(cl); }
static ClassLoader getContextClassLoader(Thread thread) { return getTCLAction().getContextClassLoader(thread); }