org.openejb.core.ivm.naming.java
Class javaURLContextFactory
java.lang.Object
org.openejb.core.ivm.naming.java.javaURLContextFactory
- All Implemented Interfaces:
- InitialContextFactory, ObjectFactory
public class javaURLContextFactory
- extends Object
- implements ObjectFactory, InitialContextFactory
Implements a URL context factory for the java: URL. Exposes
the environment naming context (java:/comp) as a read-only
context as per the J2EE container requirements.
To use this context factory the JNDI properties file must include
the following property:
java.naming.factory.url.pkgs=org.openejb.naming
- Version:
- $Revision: 1096 $ $Date: 2004-03-26 13:41:16 -0800 (Fri, 26 Mar 2004) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaURLContextFactory
public javaURLContextFactory()
getInitialContext
public Context getInitialContext(Hashtable env)
throws NamingException
- Specified by:
getInitialContext
in interface InitialContextFactory
- Throws:
NamingException
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable env)
throws NamingException
- Specified by:
getObjectInstance
in interface ObjectFactory
- Throws:
NamingException
getObjectInstance
public Object getObjectInstance(Object obj,
Hashtable env)
throws NamingException
- Throws:
NamingException
getContext
public Context getContext()
Copyright © 1999-2010 OpenEJB. All Rights Reserved.