当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 system API Documentation 英文版文档
ServiceController.ServiceProxy (JBoss System API) - JBoss 4.0.1 sp1 system API Documentation 英文版文档
org.jboss.system
Class ServiceController.ServiceProxy
java.lang.Object
org.jboss.system.ServiceController.ServiceProxy
- All Implemented Interfaces:
- InvocationHandler
- Enclosing class:
- ServiceController
- public class ServiceController.ServiceProxy
- extends Object
- implements InvocationHandler
An implementation of InvocationHandler used to proxy of the Service
interface for mbeans. It determines which of the start/stop
methods of the Service interface an mbean implements by inspecting its
MBeanOperationInfo values. Each Service interface method that has a
matching operation is forwarded to the mbean by invoking the method
through the MBeanServer object.
Constructor Summary |
ServiceController.ServiceProxy(javax.management.ObjectName objectName,
javax.management.MBeanOperationInfo[] opInfo)
Go through the opInfo array and for each operation that matches on of
the Service interface methods set the corresponding hasOp array value
to true. |
Method Summary |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Map the method name to a Service interface method index and if the
corresponding hasOp array element is true, dispatch the method to the
mbean we are proxying. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceController.ServiceProxy
public ServiceController.ServiceProxy(javax.management.ObjectName objectName,
javax.management.MBeanOperationInfo[] opInfo)
- Go through the opInfo array and for each operation that matches on of
the Service interface methods set the corresponding hasOp array value
to true.
- Parameters:
objectName
- opInfo
-
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Map the method name to a Service interface method index and if the
corresponding hasOp array element is true, dispatch the method to the
mbean we are proxying.
- Specified by:
invoke
in interface InvocationHandler
- Parameters:
proxy
- method
- args
-
- Returns:
- Always null.
- Throws:
Throwable
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.