1 package org.enhydra.spi.webxml; 2 3 import java.util.Properties ; 4 5 import javax.naming.CompoundName ; 6 import javax.naming.Name ; 7 import javax.naming.NameParser ; 8 import javax.naming.NamingException ; 9 10 public class WebXmlNameParser implements NameParser { 11 12 static Properties syntax = new Properties (); 13 14 static { 15 syntax.put("jndi.syntax.direction", "left_to_right"); 16 syntax.put("jndi.syntax.separator", "/"); 17 syntax.put("jndi.syntax.ignorecase", "false"); 18 } 19 20 public Name parse(String name) throws NamingException { 21 return new CompoundName (name, syntax); 22 } 23 } 24 | Popular Tags |