Skip navigation links

Oracle® Database XML Java API Reference
11g Release 1 (11.1)

B28391-01


oracle.xdb.spi
Class XDBContextFactory

java.lang.Object
  extended by oracle.xdb.spi.XDBContextFactory

All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class XDBContextFactory
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory

Field Summary
static java.lang.String ENV_CONNECTION
           
static java.lang.String RETURN_OBJECT_TYPE
           
static java.lang.String RETURN_TYPE_RESOURCE
           

 

Constructor Summary
XDBContextFactory()
           

 

Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable env)
          Retrieves the Initial Context.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

RETURN_OBJECT_TYPE

public static java.lang.String RETURN_OBJECT_TYPE

RETURN_TYPE_RESOURCE

public static java.lang.String RETURN_TYPE_RESOURCE

ENV_CONNECTION

public static java.lang.String ENV_CONNECTION

Constructor Detail

XDBContextFactory

public XDBContextFactory()

Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable env)
                                       throws javax.naming.NamingException
Retrieves the Initial Context. If the environment specifies that the return object type is Resource then a resource class is instantiated else a Context is instantiated
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Parameters:
env - The environment to be used for context creation
Returns:
the Initial Context; the initial context will always be a context i.e. not a resource
Throws:
javax.naming.NameNotFoundException - name not found
javax.naming.NamingException - other naming exception
See Also:
XDBDocument

Skip navigation links

Oracle® Database XML Java API Reference
11g Release 1 (11.1)

B28391-01


Copyright © 2003, 2007, Oracle. All rights reserved.