1 10 11 package org.mule.extras.spring.config; 12 13 import java.beans.PropertyEditorSupport ; 14 15 import org.apache.commons.logging.Log; 16 import org.apache.commons.logging.LogFactory; 17 import org.mule.MuleException; 18 import org.mule.util.MuleObjectHelper; 19 20 24 public class TransformerEditor extends PropertyEditorSupport 25 { 26 29 protected static Log logger = LogFactory.getLog(TransformerEditor.class); 30 31 public void setAsText(String text) 32 { 33 try 34 { 35 setValue(MuleObjectHelper.getTransformer(text, (text.indexOf(",") > -1 ? "," : " "))); 36 } 37 catch (MuleException e) 38 { 39 logger.error(e.getMessage(), e); 40 } 41 } 42 } 43 | Popular Tags |