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
GenericAbstractLazyInitializer
for 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 T
get()
Returns an initialized instance of T.protected abstract T
initialize()
Initializes the actual object that should be returned.
-