-
Available since OmniFaces 3.9
Implements lazy-initialized object primarily for final and transient fields. Utilizes double-checked locking for optimization.
Example:
private final Lazy<Object> lazy = new Lazy<>(Object::new);
Object lazyInstance = lazy.get();
Feature request
If you know more useful methods/functions which you think should be added to this OmniFaces utility class so that everyone can benefit from a "standard" Faces utility library, feel free to post a feature request.
Documentation & Sources