| Constructor and Description |
|---|
SingletonProvider() |
public final T get()
get in interface Provider<T>SingletonProviderprotected abstract T create()
public static <T> SingletonProvider<T> from(Provider<T> provider)
Provider to return always the same instance all the time. like a singleton.T - Type of object returnedprovider - The provider to wrapProvider that will always returns the same instanceCopyright © 2008-2011 Ovea. All Rights Reserved.