org.jnp.interfaces
Class LocalOnlyContextFactory
java.lang.Object
org.jnp.interfaces.LocalOnlyContextFactory
- All Implemented Interfaces:
- InitialContextFactory
public class LocalOnlyContextFactory
- extends Object
- implements InitialContextFactory
An InitialContextFactory that uses the either NamingContex.localServer naming
server which has to have been set, or injected.
- Version:
- $Revision: 80569 $
- Author:
- Bill Burke, Scott.Stark@jboss.org
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalOnlyContextFactory
public LocalOnlyContextFactory()
getNaming
public Naming getNaming()
setNaming
public void setNaming(Naming naming)
- Set the Naming instance to use for the root content.
- Parameters:
naming
- - the Naming instance to use, null if the global
NamingContext.getLocal value should be used.
getInitialContext
public Context getInitialContext(Hashtable<?,?> env)
throws NamingException
- Specified by:
getInitialContext
in interface InitialContextFactory
- Throws:
NamingException
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.