1
2
3
4
5
6
7
8 package org.apache.avalon.excalibur.naming;
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 public class DefaultNameParser
18 implements Serializable, NameParser
19 {
20 protected static Properties c_syntax = new Properties();
21
22 static
23 {
24 c_syntax.put( "jndi.syntax.direction", "left_to_right" );
25 c_syntax.put( "jndi.syntax.ignorecase", "false" );
26 c_syntax.put( "jndi.syntax.separator", "/" );
27 }
28
29 public Name parse( final String name )
30 throws NamingException
31 {
32 return new CompoundName( name, c_syntax );
33 }
34 }