public class ProviderUtils
extends java.lang.Object
Provider
.Constructor and Description |
---|
ProviderUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> javax.inject.Provider<T> |
memoized(javax.inject.Provider<T> delegate)
Caches the result of provider in a thread safe manner.
|
public static <T> javax.inject.Provider<T> memoized(javax.inject.Provider<T> delegate)
T
- The type of resultdelegate
- The provider providing the result