Package org.apache.johnzon.core
Class JsonProviderImpl.Cached<T>
- java.lang.Object
- 
- org.apache.johnzon.core.JsonProviderImpl.Cached<T>
 
- 
- Type Parameters:
- T- the type of the cached instance.
 - All Implemented Interfaces:
- Supplier<T>
 - Enclosing class:
- JsonProviderImpl
 
 private static class JsonProviderImpl.Cached<T> extends Object implements Supplier<T> Enables to not allocate potentially big instances or delay the initialization but ensure it happens only once.