com.onewebsql.util.jndi
Class InitialContextProvider

java.lang.Object
  extended by com.onewebsql.util.jndi.InitialContextProvider
All Implemented Interfaces:
ContextProvider

public class InitialContextProvider
extends Object
implements ContextProvider

This class provides JNDI context as InitialContext object.


Constructor Summary
InitialContextProvider()
          Constructs context provider with empty (default) JNDI environment InitialContext.
InitialContextProvider(Map<?,?> environment)
          Constructs context provider with a provided JNDI environment properties.
 
Method Summary
 Context getContext()
          Returns JNDI context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitialContextProvider

public InitialContextProvider()
Constructs context provider with empty (default) JNDI environment InitialContext.


InitialContextProvider

public InitialContextProvider(Map<?,?> environment)
Constructs context provider with a provided JNDI environment properties.

Parameters:
environment - JNDI environment context properties.
See Also:
InitialContext.InitialContext(Hashtable)
Method Detail

getContext

public Context getContext()
Description copied from interface: ContextProvider
Returns JNDI context.

Specified by:
getContext in interface ContextProvider
Returns:
the JNDI context.


Copyright © 2011-2013 e-point SA. All Rights Reserved.