Top Description Inners Constructors Methods
org.mortbay.naming

public Class InitialContextFactory

extends Object
implements InitialContextFactory
Class Inheritance
All Implemented Interfaces
javax.naming.spi.InitialContextFactory
Imports
java.util.Hashtable, .Properties, javax.naming.CompoundName, .Context, .Name, .NameParser, .NamingException, org.mortbay.log.Log, org.mortbay.naming.local.localContextRoot

InitialContextFactory.java Factory for the default InitialContext. Created: Tue Jul 1 19:08:08 2003
Author
Jan Bartel
Version
1.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Context

Returns:

a Context value
getInitialContext
(Hashtable<K, V>
a Hashtable value
env
)

Implements javax.naming.spi.InitialContextFactory.getInitialContext.

Get Context that has access to default Namespace.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InitialContextFactoryback to summary
public InitialContextFactory()

Method Detail

getInitialContextback to summary
public Context getInitialContext(Hashtable<K, V> env)

Implements javax.naming.spi.InitialContextFactory.getInitialContext.

Get Context that has access to default Namespace. This method won't be called if a name URL beginning with java: is passed to an InitialContext.

Parameters
env:Hashtable<K, V>

a Hashtable value

Returns:Context

a Context value

See Also
org.mortbay.naming.java.javaURLContextFactory
org.mortbay.naming back to summary

public Class InitialContextFactory.DefaultParser

extends Object
implements NameParser
Class Inheritance
All Implemented Interfaces
javax.naming.NameParser

Field Summary

Modifier and TypeField and Description
pack-priv static Properties

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Name
parse(String
The non-null string name to parse.
name
)

Implements javax.naming.NameParser.parse.

Parses a name into its components.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

syntaxback to summary
pack-priv static Properties syntax

Constructor Detail

DefaultParserback to summary
public DefaultParser()

Method Detail

parseback to summary
public Name parse(String name) throws NamingException

Implements javax.naming.NameParser.parse.

Doc from javax.naming.NameParser.parse.

Parses a name into its components.

Parameters
name:String

The non-null string name to parse.

Returns:Name

A non-null parsed form of the name using the naming convention of this parser.

Exceptions
NamingException:
If a naming exception was encountered.