org.jpu.patterns.singleton.onePerContext
Interface IContext

All Known Implementing Classes:
SimpleContext

public interface IContext

Interface that can optionally be implemented by a context for use with the OnePerContextManager facility. Whenever a new One-Per-Context is instantiated, the context on whose behalf it was created may implement IContext to be notified of the instantiation via its initialize(org.jpu.patterns.singleton.onePerContext.IOnePerContextManager, java.lang.Object) method. Typically the context would proceed to do some sort of initialization on the the newly created One-Per-Context.

A default implementation of this interface called SimpleContext is included, and provides default implementations of the interface's methods.


Method Summary
 void initialize(IOnePerContextManager opcMgr, java.lang.Object opc)
           
 java.lang.Object newInstance(IOnePerContextManager opcMgr)
           
 

Method Detail

newInstance

public java.lang.Object newInstance(IOnePerContextManager opcMgr)

initialize

public void initialize(IOnePerContextManager opcMgr,
                       java.lang.Object opc)


Copyright (c) 2001-2003 - Apache Software Foundation