Interface Holder<T>

Type Parameters:
T - The type of the held value
All Superinterfaces:
Serializable
All Known Implementing Classes:
ComponentHolder, ToolHolder, TypeHolder

public interface Holder<T> extends Serializable

Interface that expose the methods used by the concrete value holder implementations.

The implementations should lazily load the held value (using the getter methods) using a service or a supplier function that will be injected as a dependency.

  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Lazily extract the held value; the following invocation of this method will return the value that has been fetched on the first time that has been called.
  • Method Details

    • get

      T get()
      Lazily extract the held value; the following invocation of this method will return the value that has been fetched on the first time that has been called.
      Returns:
      the value or null if there's no