com.github.smokestack.jndi
Class MockInitialContextFactory

java.lang.Object
  extended by com.github.smokestack.jndi.MockInitialContextFactory
All Implemented Interfaces:
InitialContextFactory

public class MockInitialContextFactory
extends Object
implements InitialContextFactory

Author:
gliptak

Field Summary
protected static MockContext singleton
           
 
Constructor Summary
MockInitialContextFactory()
           
 
Method Summary
 Context _getInitialContext(Hashtable environment)
           
 Context getInitialContext(Hashtable environment)
           
protected static void releaseSingleton()
          Release singleton
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

singleton

protected static MockContext singleton
Constructor Detail

MockInitialContextFactory

public MockInitialContextFactory()
Method Detail

getInitialContext

public Context getInitialContext(Hashtable environment)
                          throws NamingException
Specified by:
getInitialContext in interface InitialContextFactory
Throws:
NamingException

_getInitialContext

public Context _getInitialContext(Hashtable environment)
                           throws NamingException
Throws:
NamingException

releaseSingleton

protected static void releaseSingleton()
Release singleton


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Smokestack. All Rights Reserved.