org.openejb.core.ivm.naming.java
Class javaURLContextFactory

java.lang.Object
  extended byorg.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) $

Constructor Summary
javaURLContextFactory()
           
 
Method Summary
 Context getContext()
           
 Context getInitialContext(Hashtable env)
           
 Object getObjectInstance(Object obj, Hashtable env)
           
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

javaURLContextFactory

public javaURLContextFactory()
Method Detail

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-2007 OpenEJB. All Rights Reserved.