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