Package org.osjava.sj.jndi
Class SimpleNameParser
- java.lang.Object
-
- org.osjava.sj.jndi.SimpleNameParser
-
- All Implemented Interfaces:
javax.naming.NameParser
public class SimpleNameParser extends java.lang.Object implements javax.naming.NameParser
The NameParser for the Simple-JNDI.- Since:
- OSJava Threads 2.0
- Version:
- $LastChangedRevision $ $LastChangedDate: 2007-06-24 19:01:53 -0700 (Sun, 24 Jun 2007) $
- Author:
- Robert M. Zigweid
-
-
Constructor Summary
Constructors Constructor Description SimpleNameParser(javax.naming.Context parent)
Creates a ThreadNameParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.naming.Name
parse(java.lang.String name)
Parses a name into its components.
(Copied fromNameParser.parse(java.lang.String)
-
-
-
Constructor Detail
-
SimpleNameParser
public SimpleNameParser(javax.naming.Context parent) throws javax.naming.NamingException
Creates a ThreadNameParser. Any relevant information that is needed, such as the environment that is passed toCompundName
objects that are created.- Parameters:
parent
- ThreadContext that utilizes the name parser.- Throws:
javax.naming.NamingException
- if a naming exception is found.
-
-
Method Detail
-
parse
public javax.naming.Name parse(java.lang.String name) throws javax.naming.InvalidNameException, javax.naming.NamingException
Parses a name into its components.
(Copied fromNameParser.parse(java.lang.String)
- Specified by:
parse
in interfacejavax.naming.NameParser
- Parameters:
name
- The non-null string name to parse.- Returns:
- A non-null parsed form of the name using the naming convention of this parser.
- Throws:
javax.naming.InvalidNameException
- If the name does not conform to syntax defined for the namespace.javax.naming.NamingException
- If a naming exception was encountered.
-
-