public class SimpleInitializer extends Initializer
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
instance
The instance used as the initial value.
|
| Constructor and Description |
|---|
SimpleInitializer(java.lang.Object instance)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getReturnType()
Report the type of object which will be returned when
resolve()
is called. |
java.lang.Object |
resolve()
Evaluate the initializer and return back the result.
|
public SimpleInitializer(java.lang.Object instance)
instance - The object to be used as the initial value.public java.lang.Object resolve()
resolve in class Initializerpublic java.lang.Class<?> getReturnType()
resolve()
is called.getReturnType in class Initializer