org.ow2.jonas.client.naming
Class ClientInitialContextFactory

java.lang.Object
  extended by org.ow2.jonas.client.naming.ClientInitialContextFactory
All Implemented Interfaces:
InitialContextFactory

public class ClientInitialContextFactory
extends Object
implements InitialContextFactory

This InitialContextFactory, to be used on the client side only, has the role of initializing the JComponentContextFactory (for example java:comp/UserTransaction).


Constructor Summary
ClientInitialContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable env)
          Creates an Initial Context for begining name resolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientInitialContextFactory

public ClientInitialContextFactory()
Method Detail

getInitialContext

public Context getInitialContext(Hashtable env)
                          throws NamingException
Creates an Initial Context for begining name resolution. This class is necessary for the Client to provide a correct Context with the delegate objects added (UserTransaction, ...).

Specified by:
getInitialContext in interface InitialContextFactory
Parameters:
env - The possibly null environment specifying information to be used in the creation of the initial context.
Returns:
A non-null initial context object that implements the Context interface.
Throws:
NamingException - If cannot create an initial context.


Copyright © 2010 OW2 Consortium. All Rights Reserved.