1 23 package com.sun.enterprise.repository; 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 class RepositoryNameParser implements NameParser { 32 33 static Properties syntax = new Properties (); 34 static { 35 syntax.put("jndi.syntax.direction", "left_to_right"); 36 syntax.put("jndi.syntax.separator", "."); 37 syntax.put("jndi.syntax.ignorecase", "false"); 38 } 39 public Name parse(String name) throws NamingException { 40 return new CompoundName (name, syntax); 41 } 42 } 43 | Popular Tags |