Package org.jpu.patterns.singleton.onePerContext

Utilities related to the "OnePerContext" variant of Singleton.

See:
          Description

Interface Summary
IContext Interface that can optionally be implemented by a context for use with the OnePerContextManager facility.
IOnePerContext Interface that may optionally be implemented by one-per-context classes.
IOnePerContextManager Interface implemented by the OnePerContextManager class.
IOnePerContextManager.IInitializer Interface to be implemented by classes that are registered as initializers via IOnePerContextManager.addInitializer(int, org.jpu.patterns.singleton.onePerContext.IOnePerContextManager.IInitializer).
IOnePerContextManager.IInstantiator Interface to be implemented by classes that are registered as instantiators via IOnePerContextManager.setInstantiator(org.jpu.patterns.singleton.onePerContext.IOnePerContextManager.IInstantiator).
 

Class Summary
OnePerContextManager This class and its associated interfaces implement a pattern that is a variant of Singleton intended for situations where you need one instance of the class per "context", rather than one per classloader as is the case with traditional singletons.
OnePerContextManager.DefaultInstantiator Default implementation of IOnePerContextManager.IInstantiator.
SimpleContext  
 

Package org.jpu.patterns.singleton.onePerContext Description

Utilities related to the "OnePerContext" variant of Singleton.



Copyright (c) 2001-2003 - Apache Software Foundation