T - the type of the instance produced by the Factorypublic static class Factories.SingletonFactory<T> extends Object implements Factory<T>
Factory that always returns a specific instance. ie: the
factory returns a singleton, regardless of the number of times
Factory.create() is called.| Constructor and Description |
|---|
Factories.SingletonFactory(T instance)
Constructor for the
Factories.SingletonFactory. |
public Factories.SingletonFactory(T instance)
Factories.SingletonFactory.instance - the instance to returnCopyright © 2013. All Rights Reserved.