1 25 26 package org.objectweb.easybeans.naming.context; 27 28 import java.util.Properties ; 29 30 import javax.naming.CompoundName ; 31 import javax.naming.Name ; 32 import javax.naming.NameParser ; 33 import javax.naming.NamingException ; 34 35 38 public class JavaNameParser implements NameParser { 39 40 43 private static Properties syntax = new Properties (); 44 45 static { 46 syntax.put("jndi.syntax.direction", "left_to_right"); 47 syntax.put("jndi.syntax.separator", "/"); 48 syntax.put("jndi.syntax.ignorecase", "false"); 49 } 50 51 58 public Name parse(final String name) throws NamingException { 59 return new CompoundName (name, syntax); 60 } 61 } 62 | Popular Tags |