1 /* 2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 3 * The software in this package is published under the terms of the CPAL v1.0 4 * license, a copy of which has been included with this distribution in the 5 * LICENSE.txt file. 6 */ 7 package org.mule.config.spring.parsers.assembly.configuration; 8 9 import java.util.LinkedList; 10 import java.util.List; 11 import java.util.StringTokenizer; 12 13 /** 14 * Be careful - this doesn't work with endpoint properties because they need to be converted to a URI. 15 */ 16 public class ListValueMap implements ValueMap 17 { 18 19 public Object rewrite(String value) 20 { 21 List list = new LinkedList(); 22 StringTokenizer tokenizer = new StringTokenizer(value); 23 while (tokenizer.hasMoreTokens()) 24 { 25 list.add(tokenizer.nextToken()); 26 } 27 return list; 28 } 29 30 }