1 8 package org.codehaus.spice.jndikit; 9 10 import java.io.Serializable ; 11 import java.util.Properties ; 12 import javax.naming.CompoundName ; 13 import javax.naming.Name ; 14 import javax.naming.NameParser ; 15 import javax.naming.NamingException ; 16 17 24 public class DefaultNameParser 25 implements Serializable , NameParser 26 { 27 private static Properties c_syntax = new Properties (); 28 29 static 30 { 31 c_syntax.put( "jndi.syntax.direction", "left_to_right" ); 32 c_syntax.put( "jndi.syntax.ignorecase", "false" ); 33 c_syntax.put( "jndi.syntax.separator", "/" ); 34 } 35 36 public Name parse( final String name ) 37 throws NamingException 38 { 39 return new CompoundName ( name, c_syntax ); 40 } 41 } 42 | Popular Tags |