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.jndi; 8 9 import javax.naming.CompositeName; 10 import javax.naming.Name; 11 import javax.naming.NameParser; 12 import javax.naming.NamingException; 13 14 /** 15 * A default implementation of {@link NameParser} 16 * 17 */ 18 public class DefaultNameParser implements NameParser { 19 20 public Name parse(String name) throws NamingException { 21 return new CompositeName(name); 22 } 23 }