org.apache.geronimo.naming.java
Class javaURLContextFactory

java.lang.Object
  extended byorg.apache.geronimo.naming.java.javaURLContextFactory
All Implemented Interfaces:
ObjectFactory

public class javaURLContextFactory
extends Object
implements ObjectFactory

URLContextFactory for the java: JNDI namespace.

Version:
$Revision: 1.3 $ $Date: 2004/03/10 09:59:08 $

Constructor Summary
javaURLContextFactory()
           
 
Method Summary
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
          Return a Context that is able to resolve names in the java: namespace.
 
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

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable environment)
                         throws Exception
Return a Context that is able to resolve names in the java: namespace. The root context, "java:" is always returned. This is a specific implementation of a URLContextFactory and not a general ObjectFactory.

Specified by:
getObjectInstance in interface ObjectFactory
Parameters:
obj - must be null
name - ignored
nameCtx - ignored
environment - ignored
Returns:
the Context for "java:"
Throws:
OperationNotSupportedException - if obj is not null
Exception


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.