KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > net > jmx > MBeanInvocationHandler


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 // $Id: MBeanInvocationHandler.java,v 1.14.6.1 2005/03/02 14:19:58 tdiesler Exp $
9

10 package org.jboss.net.jmx;
11
12
13 import org.jboss.axis.client.Call;
14 import org.jboss.axis.client.Service;
15 import org.jboss.net.axis.AxisInvocationHandler;
16
17 import java.net.URL JavaDoc;
18 import java.util.Map JavaDoc;
19
20 /**
21  * <p>
22  * Helper class for dealing with remote JMX beans in typed or untyped ways.
23  * </p>
24  * @deprecated You should use the jaxrpc/wsdl approach instead.
25  * @since 1. Oktober 2001, 18:22
26  * @author <a HREF="mailto:Christoph.Jung@infor.de">Christoph G. Jung</a>
27  * @version $Revision: 1.14.6.1 $
28  */

29
30 public class MBeanInvocationHandler extends AxisInvocationHandler
31 {
32
33    /** Creates new MBeanInvocationHandler pointing to a given url, using the given engine */
34
35    public MBeanInvocationHandler(URL JavaDoc endpoint, String JavaDoc soapAction)
36    {
37       super(endpoint, soapAction);
38    }
39
40    /** Creates new MBeanInvocationHandler pointing to a given url, using the given engine */
41
42    public MBeanInvocationHandler(URL JavaDoc endpoint, String JavaDoc soapAction, Map JavaDoc methodMap)
43    {
44       super(endpoint, soapAction, methodMap);
45    }
46
47    /** Creates new MBeanInvocationHandler pointing to a given url, using the given engine */
48
49    public MBeanInvocationHandler(URL JavaDoc endpoint,
50                                  String JavaDoc soapAction,
51                                  Map JavaDoc methodMap,
52                                  Map JavaDoc interfaceMap)
53    {
54       super(endpoint, soapAction, methodMap, interfaceMap);
55    }
56
57    /** Creates new MBeanInvocationHandler pointing to a given url, using the given engine */
58
59    public MBeanInvocationHandler(URL JavaDoc endpoint,
60                                  String JavaDoc soapAction,
61                                  Map JavaDoc methodMap,
62                                  Map JavaDoc interfaceMap,
63                                  boolean maintainSession)
64    {
65       super(endpoint, soapAction, methodMap, interfaceMap, maintainSession);
66    }
67
68    /** Creates new MBeanInvocationHandler */
69
70    public MBeanInvocationHandler(Call call, Map JavaDoc methodMap, Map JavaDoc interfaceMap)
71    {
72       super(call, methodMap, interfaceMap);
73    }
74
75    /** Creates new MBeanInvocationHandler */
76    public MBeanInvocationHandler(URL JavaDoc endpoint, String JavaDoc soapAction,
77                                  Service service,
78                                  Map JavaDoc methodMap,
79                                  Map JavaDoc interfaceMap)
80    {
81       super(endpoint, soapAction, service, methodMap, interfaceMap);
82    }
83
84    /** default creation of services */
85    public static Object JavaDoc createMBeanService(Class JavaDoc _interface, URL JavaDoc endpoint, String JavaDoc soapAction)
86    {
87       return createAxisService(_interface,
88               new MBeanInvocationHandler(endpoint, soapAction));
89    }
90
91    /** default creation of services */
92
93    public static Object JavaDoc createMBeanService(Class JavaDoc _interface,
94                                            MBeanInvocationHandler handler)
95    {
96       return createAxisService(_interface, handler);
97    }
98
99 }
Popular Tags