1
2
3
4
5
6
7 package org.mule.config.spring.editors;
8
9 import org.mule.api.MuleContext;
10 import org.mule.endpoint.URIBuilder;
11
12 import java.beans.PropertyEditorSupport;
13
14
15
16
17
18 public class URIBuilderPropertyEditor extends PropertyEditorSupport
19 {
20 private MuleContext muleContext;
21
22 public URIBuilderPropertyEditor(MuleContext muleContext)
23 {
24 this.muleContext = muleContext;
25 }
26
27 public void setAsText(String text)
28 {
29 setValue(new URIBuilder(text, muleContext));
30 }
31
32 }