org.jasig.portal.jndi
Class DisposableMemoryContextFactory

java.lang.Object
  extended by org.jasig.portal.jndi.DisposableMemoryContextFactory
All Implemented Interfaces:
InitialContextFactory, DisposableBean

public class DisposableMemoryContextFactory
extends Object
implements InitialContextFactory, DisposableBean

Initial context factory that provides access to close and de-reference the MemoryContext.

Version:
$Revision$
Author:
Eric Dalquist

Constructor Summary
DisposableMemoryContextFactory()
           
 
Method Summary
static void closeContext()
          Closes and de-references the MemoryContext, if already closed this is a noop.
 void destroy()
           
 Context getInitialContext(Hashtable<?,?> environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisposableMemoryContextFactory

public DisposableMemoryContextFactory()
Method Detail

getInitialContext

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

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception

closeContext

public static void closeContext()
Closes and de-references the MemoryContext, if already closed this is a noop.



Copyright © 2010 Jasig. All Rights Reserved.