1 29 30 package org.objectweb.jonas.naming; 31 32 import java.util.Properties ; 33 import javax.naming.NameParser ; 34 import javax.naming.Name ; 35 import javax.naming.CompoundName ; 36 import javax.naming.NamingException ; 37 38 41 public class EJBNameParser implements NameParser { 42 43 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(String name) throws NamingException { 59 return new CompoundName (name, syntax); 60 } 61 62 } 63 | Popular Tags |