T - Type of the object managed by this initializerpublic abstract class LazyInitializer<T> extends Object
| Constructor and Description |
|---|
LazyInitializer() |
| Modifier and Type | Method and Description |
|---|---|
T |
getInstance()
Return an instance associated with this initializer.
|
protected T |
getLazyInstance()
Returns the object associated with this initializer.
|
void |
initialize()
Starts the initializer.
|
boolean |
isInitialized()
Returns a boolean indicating if instance was initialized.
|
protected void |
onInitialize()
Called during initialization.
|
protected void onInitialize()
protected T getLazyInstance()
public final void initialize()
public final boolean isInitialized()
public final T getInstance()
Copyright © 2016 Agapsys Tecnologia Ltda-ME. All rights reserved.