org.jnp.interfaces
Class LocalOnlyContextFactory

java.lang.Object
  extended by 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

Constructor Summary
LocalOnlyContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable<?,?> env)
           
 Naming getNaming()
           
 void setNaming(Naming naming)
          Set the Naming instance to use for the root content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalOnlyContextFactory

public LocalOnlyContextFactory()
Method Detail

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 © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.