1 23 package com.sun.enterprise.naming; 24 25 import javax.naming.NameParser ; 26 import javax.naming.Name ; 27 import javax.naming.CompoundName ; 28 import javax.naming.NamingException ; 29 import java.util.Properties ; 30 31 public class SerialNameParser implements NameParser { 32 33 static Properties syntax = new Properties (); 34 35 static { 36 syntax.put("jndi.syntax.direction", "left_to_right"); 37 syntax.put("jndi.syntax.separator", "/"); 38 syntax.put("jndi.syntax.ignorecase", "false"); 39 } 40 41 48 public Name parse(String name) throws NamingException { 49 return new CompoundName (name, syntax); 50 } 51 52 } 53 | Popular Tags |