JBoss Modular Service Kernel API 1.0.2.GA
- 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 an AtomicReferenceFieldUpdater
.
- Author:
- David M. Lloyd
-
-
Method Summary
Methods
Modifier and Type |
Method and Description |
void |
inject(T value)
Inject the given value.
|
void |
uninject()
Uninject the given value (in other words, cancel or undo a previous injection).
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AtomicReferenceFieldUpdaterInjector
public AtomicReferenceFieldUpdaterInjector(java.util.concurrent.atomic.AtomicReferenceFieldUpdater<C,? super T> updater,
Value<C> target)
Construct a new instance.
- Parameters:
updater
- the updater to inject totarget
- the target object upon which to inject
JBoss Modular Service Kernel API 1.0.2.GA
Copyright © 2011 JBoss, a division of Red Hat, Inc.