Package org.jboss.weld.util
Class WeakLazyValueHolder<T>
java.lang.Object
org.jboss.weld.util.WeakLazyValueHolder<T>
- Type Parameters:
T-
- All Implemented Interfaces:
ValueHolder<T>
LazyValueHolder that uses WeakReference.- Author:
- Jozef Hartinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected abstract Tstatic <T> WeakLazyValueHolder<T>forSupplier(Supplier<T> supplier) get()
-
Constructor Details
-
WeakLazyValueHolder
public WeakLazyValueHolder()
-
-
Method Details
-
forSupplier
-
get
- Specified by:
getin interfaceValueHolder<T>
-
getIfPresent
- Specified by:
getIfPresentin interfaceValueHolder<T>
-
clear
public void clear() -
computeValue
-