|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SingletonStrategy
SingletonStrategy
is an interface used to provide common
factory access for the same object based on an implementation strategy for
singleton. Right now there are two that accompany this interface:
SimpleSingleton and PerThreadSingleton. This will replace previous usage of
ThreadLocal to allow for alternate strategies.
Method Summary | |
---|---|
java.lang.Object |
instance()
return a singleton instance of the class specified in setSingletonClass |
void |
reset()
reset the instance to a new instance for the implemented strategy |
void |
setSingletonClassName(java.lang.String singletonClassName)
set a singleton class name that will be used to create the singleton based on the strategy implementation of this interface. |
Method Detail |
---|
java.lang.Object instance()
void reset()
void setSingletonClassName(java.lang.String singletonClassName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |