How do I convert a String to an Object during parsing?  I registered the converter in 
ConvertUtils but betwixt never calls its convert method.  I've also tried plugging in 
a custom ObjectStringConverter to the reader's BindingConfiguration but the 
stringToObject method is not called for the registered class.  Thanks for any help.
Pam

class MyConverter implements Converter
{
   public Object convert(Class aClass, Object o)
   {
      if (KeyStroke.class.equals(aClass))
      {         
         return KeyStroke.getKeyStroke((String)o);
      }  
   }
}

...
ConvertUtils.register(new MyConverter(), KeyStroke.class);
BeanReader reader = new BeanReader();
reader.parse ...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to