Package cronapi.osjava.sj.jndi
Class SimpleNameParser
- java.lang.Object
-
- cronapi.osjava.sj.jndi.SimpleNameParser
-
- All Implemented Interfaces:
NameParser
public class SimpleNameParser extends Object implements 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(Context parent)Creates a ThreadNameParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nameparse(String name)Parses a name into its components.
(Copied fromNameParser.parse(String)
-
-
-
Constructor Detail
-
SimpleNameParser
public SimpleNameParser(Context parent) throws NamingException
Creates a ThreadNameParser. Any relevant information that is needed, such as the environment that is passed toCompundNameobjects that are created.- Parameters:
parent- ThreadContext that utilizes the name parser.- Throws:
NamingException- if a naming exception is found.
-
-
Method Detail
-
parse
public Name parse(String name) throws InvalidNameException, NamingException
Parses a name into its components.
(Copied fromNameParser.parse(String)- Specified by:
parsein interfaceNameParser- 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:
InvalidNameException- If the name does not conform to syntax defined for the namespace.NamingException- If a naming exception was encountered.
-
-