NamingParser.java |
/* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jnp.interfaces; import javax.naming.NameParser; import javax.naming.Name; import javax.naming.CompoundName; import javax.naming.NamingException; import java.util.Properties; /** The NamingParser for the jnp naming implementation * * @author Rickard Oberg * @author Scott.Stark@jboss.org * @version $Revision: 1.5.6.2 $ */ public class NamingParser implements NameParser, java.io.Serializable { // Constants ----------------------------------------------------- private static final long serialVersionUID = 2925203703371001031L; // Attributes ---------------------------------------------------- // Static -------------------------------------------------------- /** The unsynchronized syntax properties */ static Properties syntax = new FastNamingProperties(); public static Properties getSyntax() { return syntax; } // Constructors -------------------------------------------------- // Public -------------------------------------------------------- // NameParser implementation ------------------------------------- public Name parse(String name) throws NamingException { return new CompoundName(name, syntax); } // Y overrides --------------------------------------------------- // Package protected --------------------------------------------- // Protected ----------------------------------------------------- // Private ------------------------------------------------------- // Inner classes ------------------------------------------------- }
NamingParser.java |