站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jmx API Documentation 英文版文档

MBeanProxyExt (JBoss/JMX API) - JBoss 3.2.7 jmx API Documentation 英文版文档


org.jboss.mx.util
Class MBeanProxyExt

java.lang.Object
  extended byorg.jboss.mx.util.MBeanProxyExt
All Implemented Interfaces:
InvocationHandler, MBeanProxyInstance

public class MBeanProxyExt
extends Object
implements InvocationHandler, MBeanProxyInstance

A factory for producing MBean proxies.

Created proxies will also implement MBeanProxyInstance allowing access to the proxies configuration.

Revisions:

20020321 Adrian Brock:

Version:
$Revision: 1.1.2.7 $
Author:
Rickard 脰berg., Jason Dillon, Adrian Brock.

Method Summary
static Object create(Class intf, ObjectName name)
          Create an MBean proxy.
static Object create(Class intf, ObjectName name, MBeanServer server)
          Create an MBean proxy.
static Object create(Class intf, String name)
          Create an MBean proxy.
static Object create(Class intf, String name, MBeanServer server)
          Create an MBean proxy.
 MBeanServer getMBeanProxyMBeanServer()
          Return the MBeanServer for this proxy.
 ObjectName getMBeanProxyObjectName()
          Return the ObjectName for this proxy.
 Object invoke(Object proxy, Method method, Object[] args)
          Invoke the configured MBean via the target MBeanServer and decode any resulting JMX exceptions that are thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Invoke the configured MBean via the target MBeanServer and decode any resulting JMX exceptions that are thrown.

Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

getMBeanProxyObjectName

public final ObjectName getMBeanProxyObjectName()
Description copied from interface: MBeanProxyInstance
Return the ObjectName for this proxy.

Specified by:
getMBeanProxyObjectName in interface MBeanProxyInstance
Returns:
The ObjectName for this proxy.

getMBeanProxyMBeanServer

public final MBeanServer getMBeanProxyMBeanServer()
Description copied from interface: MBeanProxyInstance
Return the MBeanServer for this proxy.

Specified by:
getMBeanProxyMBeanServer in interface MBeanProxyInstance
Returns:
The ObjectName for this proxy.

create

public static Object create(Class intf,
                            String name)
                     throws MalformedObjectNameException
Create an MBean proxy.

Parameters:
intf - The interface which the proxy will implement.
name - A string used to construct the ObjectName of the MBean to proxy to.
Returns:
A MBean proxy.
Throws:
MalformedObjectNameException - Invalid object name.

create

public static Object create(Class intf,
                            String name,
                            MBeanServer server)
                     throws MalformedObjectNameException
Create an MBean proxy.

Parameters:
intf - The interface which the proxy will implement.
name - A string used to construct the ObjectName of the MBean to proxy to.
server - The MBeanServer that contains the MBean to proxy to.
Returns:
A MBean proxy.
Throws:
MalformedObjectNameException - Invalid object name.

create

public static Object create(Class intf,
                            ObjectName name)
Create an MBean proxy.

Parameters:
intf - The interface which the proxy will implement.
name - The name of the MBean to proxy invocations to.
Returns:
A MBean proxy.

create

public static Object create(Class intf,
                            ObjectName name,
                            MBeanServer server)
Create an MBean proxy.

Parameters:
intf - The interface which the proxy will implement.
name - The name of the MBean to proxy invocations to.
server - The MBeanServer that contains the MBean to proxy to.
Returns:
A MBean proxy.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.