org.osjava.sj.jndi
Class SimpleNameParser

java.lang.Object
  extended by org.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
SimpleNameParser(Context parent)
          Creates a ThreadNameParser.
 
Method Summary
 Name parse(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
 

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 to CompundName objects 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 from NameParser.parse(java.lang.String)

Specified by:
parse in interface 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:
InvalidNameException - If the name does not conform to syntax defined for the namespace.
NamingException - If a naming exception was encountered.


Copyright © 2003-2008 OSJava. All Rights Reserved.