Package org.jboss.msc.inject
Class AtomicReferenceFieldUpdaterInjector<C,T>
- java.lang.Object
-
- org.jboss.msc.inject.AtomicReferenceFieldUpdaterInjector<C,T>
-
- Type Parameters:
C
- the class which holds the target fieldT
- the type of the value to inject
- All Implemented Interfaces:
Injector<T>
public final class AtomicReferenceFieldUpdaterInjector<C,T> extends java.lang.Object implements Injector<T>
An injector which updates the value of anAtomicReferenceFieldUpdater
.
-
-
Constructor Summary
Constructors Constructor Description AtomicReferenceFieldUpdaterInjector(java.util.concurrent.atomic.AtomicReferenceFieldUpdater<C,? super T> updater, Value<C> target)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inject(T value)
Inject the given value.void
uninject()
Uninject the given value (in other words, cancel or undo a previous injection).
-
-
-
Method Detail
-
inject
public void inject(T value)
Inject the given value.
-
-