KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > management > support > JmxModernSupport


1 /*
2  * $Id: JmxModernSupport.java 4219 2006-12-09 10:15:14Z lajos $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10 package org.mule.management.support;
11
12 import javax.management.MalformedObjectNameException JavaDoc;
13 import javax.management.ObjectName JavaDoc;
14
15 /**
16  * Support class using JMX 1.2 and newer calls.
17  */

18 public class JmxModernSupport extends AbstractJmxSupport
19 {
20
21     /** {@inheritDoc} */
22     public String JavaDoc escape(String JavaDoc input)
23     {
24         return ObjectName.quote(input);
25     }
26
27     /**
28      * For modern JMX implementation just delegate to a standard factory method.
29      * @param name object name
30      * @return ObjectName for MBeanServer
31      * @throws MalformedObjectNameException for invalid names
32      */

33     public ObjectName JavaDoc getObjectName(String JavaDoc name) throws MalformedObjectNameException JavaDoc
34     {
35         return ObjectName.getInstance(name);
36     }
37 }
38
Popular Tags