Class JNDI

  extended byorg.geotools.factory.JNDI

public final class JNDI
extends java.lang.Object

Provides initial context for Java Naming and Directory Interfaces (JNDI) in Geotools. This classes provides a central place where initial context can been found for the Geotools library. This context is used for example by the EPSG factory in order to find connection parameters to an EPSG database. Using JNDI, such connection parameters can be set in a J2EE environment.

$Id: 17672 2006-01-19 00:25:55Z desruisseaux $
Martin Desruisseaux
To Do:
Current version just returns the default context. Future version may performs a more elaborated choice, for example using similar plugin mechanism than other factories.

Method Summary
static javax.naming.InitialContext getInitialContext(Hints hints)
          Returns the default initial context.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static javax.naming.InitialContext getInitialContext(Hints hints)
                                                     throws javax.naming.NamingException
Returns the default initial context.

hints - An optional set of hints, or if none.
The initial context (never ).
javax.naming.NamingException - if the initial context can't be created.

Copyright © GeoTools. All Rights Reserved.