org.apache.openejb.config.sys
Class PropertiesAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Properties>
      extended by org.apache.openejb.config.sys.PropertiesAdapter

public class PropertiesAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Properties>

Converts a java.util.Properties object to a String in the XML file.


Constructor Summary
PropertiesAdapter()
           
 
Method Summary
 java.lang.String marshal(java.util.Properties properties)
           
 java.util.Properties unmarshal(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesAdapter

public PropertiesAdapter()
Method Detail

unmarshal

public java.util.Properties unmarshal(java.lang.String s)
                               throws java.lang.Exception
Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Properties>
Throws:
java.lang.Exception

marshal

public java.lang.String marshal(java.util.Properties properties)
                         throws java.lang.Exception
Specified by:
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Properties>
Throws:
java.lang.Exception


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.