Package overit.geocall.cdi.holders
Interface Holder<T>
- Type Parameters:
T- The type of the held value
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ComponentHolder,ToolHolder,TypeHolder
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
-
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
nullif there's no
-