Package com.google.cloud.spanner
Class AbstractLazyInitializer<T>
- java.lang.Object
-
- com.google.cloud.spanner.AbstractLazyInitializer<T>
-
- Direct Known Subclasses:
LazySpannerInitializer
public abstract class AbstractLazyInitializer<T> extends Object
GenericAbstractLazyInitializerfor any heavy-weight object that might throw an exception during initialization. The underlying object is initialized at most once.
-
-
Constructor Summary
Constructors Constructor Description AbstractLazyInitializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tget()Returns an initialized instance of T.protected abstract Tinitialize()Initializes the actual object that should be returned.
-