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:
  • Constructor Details

  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>
    • createInstance

      protected abstract T createInstance()
      Creates the lazy value
      Returns:
      new instance of the value