2 Replies Latest reply on Mar 17, 2005 9:04 AM by aloubyansky

    TypeBinding replacement?

      I've switched over the kernel xml deployer to use the MetadataDrivenObjectModelFactory,
      but I don't see a replacement for the TypeBinding processing?

      I use this previously to initialize an Enum from a String

      
       /**
       * A KernelControllerState converter
       */
       protected static class StateConverter implements TypeBinding
       {
       /** We only need one instance */
       public static final StateConverter instance = new StateConverter();
      
       public String marshal(Object value)
       {
       throw new NotImplementedException("NYI");
       }
      
       public Object unmarshal(String value)
       {
       return new KernelControllerState(value);
       }
       }