public class SimpleNameParser
extends java.lang.Object
implements javax.naming.NameParser
Modifier and Type | Field and Description |
---|---|
private javax.naming.Context |
parent |
private java.util.Properties |
props |
Constructor and Description |
---|
SimpleNameParser(javax.naming.Context parent)
Creates a ThreadNameParser.
|
Modifier and Type | Method and Description |
---|---|
javax.naming.Name |
parse(java.lang.String name)
Parses a name into its components.
(Copied from NameParser.parse(java.lang.String) |
public SimpleNameParser(javax.naming.Context parent) throws javax.naming.NamingException
CompundName
objects that are created.parent
- ThreadContext that utilizes the name parser.javax.naming.NamingException
- if a naming exception is found.public javax.naming.Name parse(java.lang.String name) throws javax.naming.InvalidNameException, javax.naming.NamingException
NameParser.parse(java.lang.String)
parse
in interface javax.naming.NameParser
name
- The non-null string name to parse.javax.naming.InvalidNameException
- If the name does not conform to syntax
defined for the namespace.javax.naming.NamingException
- If a naming exception was encountered.