View Javadoc
1 /* 2 * Copyright (C) The Apache Software Foundation. All rights reserved. 3 * 4 * This software is published under the terms of the Apache Software License 5 * version 1.1, a copy of which has been included with this distribution in 6 * the LICENSE file. 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 }

This page was automatically generated by Maven