KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > spi > conf > ConfFileNameParser


1 package org.enhydra.spi.conf;
2
3 import java.util.Properties JavaDoc;
4
5 import javax.naming.CompoundName JavaDoc;
6 import javax.naming.Name JavaDoc;
7 import javax.naming.NameParser JavaDoc;
8 import javax.naming.NamingException JavaDoc;
9
10 public class ConfFileNameParser implements NameParser JavaDoc {
11
12     static Properties JavaDoc syntax = new Properties JavaDoc();
13
14     static {
15       syntax.put("jndi.syntax.direction", "left_to_right");
16       syntax.put("jndi.syntax.separator", "/");
17       syntax.put("jndi.syntax.ignorecase", "false");
18     }
19
20     public Name JavaDoc parse(String JavaDoc name) throws NamingException JavaDoc {
21         return new CompoundName JavaDoc(name, syntax);
22     }
23 }
24
Popular Tags