org.codehaus.spice.jndikit.memory
Class MemoryInitialContextFactory

java.lang.Object
  extended byorg.codehaus.spice.jndikit.memory.MemoryInitialContextFactory
All Implemented Interfaces:
InitialContextFactory

public class MemoryInitialContextFactory
extends Object
implements InitialContextFactory

Initial context factory for memorycontext.

WARNING: This class should never be use used in a real system. It is is just a class that demonstrates how to write a basic InitialContextFactory for MemeoryContext. However this factory creates a new Context every time which is rarely desired behaviour.

In a real application you may want the policy of Context creation to be specific application. Some strategies include.

Version:
$Revision: 1.1 $
Author:
Peter Donald

Constructor Summary
MemoryInitialContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryInitialContextFactory

public MemoryInitialContextFactory()
Method Detail

getInitialContext

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


Copyright © 1999-2006 Codehaus. All Rights Reserved.