1 50 package org.apache.avalon.excalibur.naming; 51 52 import java.io.Serializable ; 53 import java.util.Properties ; 54 55 import javax.naming.CompoundName ; 56 import javax.naming.Name ; 57 import javax.naming.NameParser ; 58 import javax.naming.NamingException ; 59 60 63 public class DefaultNameParser 64 implements Serializable , NameParser 65 { 66 protected static Properties c_syntax = new Properties (); 67 68 static 69 { 70 c_syntax.put( "jndi.syntax.direction", "left_to_right" ); 71 c_syntax.put( "jndi.syntax.ignorecase", "false" ); 72 c_syntax.put( "jndi.syntax.separator", "/" ); 73 } 74 75 public Name parse( final String name ) 76 throws NamingException 77 { 78 return new CompoundName ( name, c_syntax ); 79 } 80 } 81 | Popular Tags |