org.apache.tools.ant.taskdefs.optional.jmx.connector.weblogic
Class WebLogicMBeanValueConverter
java.lang.Object
|
+--org.apache.tools.ant.taskdefs.optional.jmx.connector.weblogic.WebLogicMBeanValueConverter
- All Implemented Interfaces:
- ValueConverter
- public class WebLogicMBeanValueConverter
- extends java.lang.Object
- implements ValueConverter
Converts a String to an equivalent weblogic.management.WebLogicMBeanValue value.
- Version:
- $Id: WebLogicMBeanValueConverter.java,v 1.2 2003/05/28 22:28:26 bdueck Exp $
- Author:
- Brian Dueck
Constructor Summary |
WebLogicMBeanValueConverter(weblogic.management.MBeanHome home)
Creates a new instance of WebLogicMBeanValueConverter. |
Method Summary |
java.lang.String[] |
getSupportedTypes()
Returns an array of types (Java class names, or Java primitives)
this converter supports. |
java.lang.Object |
valueOf(java.lang.String value,
java.lang.String type)
Convert a string to an ObjectName. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebLogicMBeanValueConverter
public WebLogicMBeanValueConverter(weblogic.management.MBeanHome home)
- Creates a new instance of WebLogicMBeanValueConverter.
- Parameters:
home
- Reference to the MBeanHome. Required in order to convert
an ObjectName into an WebLogicMBean instance.
valueOf
public java.lang.Object valueOf(java.lang.String value,
java.lang.String type)
throws java.lang.Exception
- Convert a string to an ObjectName.
Value is in the form of an javax.management.ObjectName
(e.g. :Name=myserver,Type=Server)
- Specified by:
valueOf
in interface ValueConverter
- Following copied from interface:
org.apache.tools.ant.taskdefs.optional.jmx.converter.ValueConverter
- Parameters:
value
- The attribute value.type
- The java primitive type or class name.
getSupportedTypes
public java.lang.String[] getSupportedTypes()
- Description copied from interface:
ValueConverter
- Returns an array of types (Java class names, or Java primitives)
this converter supports.
- Specified by:
getSupportedTypes
in interface ValueConverter
- Following copied from interface:
org.apache.tools.ant.taskdefs.optional.jmx.converter.ValueConverter
- Returns:
- An array of supported type names.