Apache Tomcat 7.0.37

org.apache.naming.java
Class javaURLContextFactory

java.lang.Object
  extended by org.apache.naming.java.javaURLContextFactory
All Implemented Interfaces:
InitialContextFactory, ObjectFactory

public class javaURLContextFactory
extends Object
implements ObjectFactory, InitialContextFactory

Context factory for the "java:" namespace.

Important note : This factory MUST be associated with the "java" URL prefix, which can be done by either :

Version:
$Id: javaURLContextFactory.java 1413563 2012-11-26 11:45:43Z markt $
Author:
Remy Maucherat

Field Summary
protected static Context initialContext
          Initial context.
static String MAIN
           
 
Constructor Summary
javaURLContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable<?,?> environment)
          Get a new (writable) initial context.
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment)
          Crete a new Context's instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN

public static final String MAIN
See Also:
Constant Field Values

initialContext

protected static volatile Context initialContext
Initial context.

Constructor Detail

javaURLContextFactory

public javaURLContextFactory()
Method Detail

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable<?,?> environment)
                         throws NamingException
Crete a new Context's instance.

Specified by:
getObjectInstance in interface ObjectFactory
Throws:
NamingException

getInitialContext

public Context getInitialContext(Hashtable<?,?> environment)
                          throws NamingException
Get a new (writable) initial context.

Specified by:
getInitialContext in interface InitialContextFactory
Throws:
NamingException

Apache Tomcat 7.0.37

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.