org.apache.avalon.excalibur.naming.memory
Class MemoryInitialContextFactory

java.lang.Object
  |
  +--org.apache.avalon.excalibur.naming.memory.MemoryInitialContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class MemoryInitialContextFactory
extends java.lang.Object
implements javax.naming.spi.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.4 $
Author:
Peter Donald

Constructor Summary
MemoryInitialContextFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.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 javax.naming.Context getInitialContext(java.util.Hashtable environment)
                                       throws javax.naming.NamingException
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.