Package org.apache.wicket.util
Class LazyInitializer<T>
- java.lang.Object
-
- org.apache.wicket.util.LazyInitializer<T>
-
- Type Parameters:
T
- type of value
- All Implemented Interfaces:
Serializable
,Supplier<T>
,IClusterable
public abstract class LazyInitializer<T> extends Object implements Supplier<T>, IClusterable
An abstraction for lazy-initializing values. Guarantees only a single instance of the value is created. Initialized value WILL NOT be serialized, and will be recreated upon de-serialization.- Author:
- igor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyInitializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
createInstance()
Creates the lazy valueT
get()
-
-
-
Constructor Detail
-
LazyInitializer
public LazyInitializer()
-
-