Package org.jboss.msc.value
Class ThreadLocalValue<T>
- java.lang.Object
-
- org.jboss.msc.value.ThreadLocalValue<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Value<T>
@Deprecated public final class ThreadLocalValue<T> extends Object implements Value<T>
Deprecated.UseServiceBuilder.requires(org.jboss.msc.service.ServiceName)
method instead. This class will be removed in a future release.A thread-local value. Used to pass values in special situations.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalValue()
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Value<? extends T>
getAndSetValue(Value<? extends T> newValue)
Deprecated.Get and set the value.T
getValue()
Deprecated.Get the actual dependency value.void
setValue(Value<? extends T> newValue)
Deprecated.Set this value, replacing any current value.
-