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
Field Summary |
private javax.naming.Context |
parent
|
private java.util.Properties |
props
|
Constructor Summary |
SimpleNameParser(javax.naming.Context parent)
Creates a ThreadNameParser. |
Method Summary |
javax.naming.Name |
parse(java.lang.String name)
Parses a name into its components.
(Copied from NameParser.parse(java.lang.String) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
private javax.naming.Context parent
props
private java.util.Properties props
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 to
CompundName
objects that are created.
- Parameters:
parent
- ThreadContext that utilizes the name parser.
- Throws:
javax.naming.NamingException
- if a naming exception is found.
parse
public javax.naming.Name parse(java.lang.String name)
throws javax.naming.InvalidNameException,
javax.naming.NamingException
- Parses a name into its components.
(Copied from NameParser.parse(java.lang.String)
- Specified by:
parse
in interface javax.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.