C
- the class which holds the target fieldT
- the type of the value to injectpublic final class AtomicReferenceFieldUpdaterInjector<C,T> extends Object implements Injector<T>
AtomicReferenceFieldUpdater
.Constructor and Description |
---|
AtomicReferenceFieldUpdaterInjector(AtomicReferenceFieldUpdater<C,? super T> updater,
Value<C> target)
Construct a new instance.
|
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).
|
public AtomicReferenceFieldUpdaterInjector(AtomicReferenceFieldUpdater<C,? super T> updater, Value<C> target)
updater
- the updater to inject totarget
- the target object upon which to injectpublic void inject(T value)
Copyright © 2017 JBoss by Red Hat. All rights reserved.