org.apache.tools.ant.taskdefs.optional.jmx.converter
Class PropertiesValueConverter

java.lang.Object
  |
  +--org.apache.tools.ant.taskdefs.optional.jmx.converter.PropertiesValueConverter
All Implemented Interfaces:
ValueConverter

public class PropertiesValueConverter
extends java.lang.Object
implements ValueConverter

Converts a String to an equivalent java.lang.Properties value.

Version:
$Id: PropertiesValueConverter.java,v 1.4 2003/05/28 22:28:26 bdueck Exp $
Author:
Brian Dueck

Constructor Summary
PropertiesValueConverter()
          Creates a new instance of PropertiesAttributeBuilder
 
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)
          Create an mbean attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesValueConverter

public PropertiesValueConverter()
Creates a new instance of PropertiesAttributeBuilder
Method Detail

valueOf

public java.lang.Object valueOf(java.lang.String value,
                                java.lang.String type)
                         throws java.lang.Exception
Create an mbean attribute value. Value is expected to be in the form of a whitespace separated list of name-value pairs. Examples: server=myserver user=barney password=secret
{server=myserver, user=barney, password=secret}
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.