Package org.jboss.msc.inject
Class RetainingInjector<T>
- java.lang.Object
-
- org.jboss.msc.inject.RetainingInjector<T>
-
- Type Parameters:
T
- the injected value type
- All Implemented Interfaces:
Injector<T>
- Direct Known Subclasses:
AddMethodInjector
,ConcurrentMapInjector
,InjectedValue
@Deprecated public abstract class RetainingInjector<T> extends Object implements Injector<T>
Deprecated.UseServiceBuilder.provides(org.jboss.msc.service.ServiceName...)
method instead. This class will be removed in a future release.An injector which retains its value.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description RetainingInjector()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Value<T>
getStoredValue()
Deprecated.Get the value object stored in this injector.void
inject(T value)
Deprecated.Inject the given value.protected Value<T>
setStoredValue(Value<T> value)
Deprecated.Set the value object stored in this injector (must not benull
).void
uninject()
Deprecated.Uninject the given value (in other words, cancel or undo a previous injection).
-
-
-
Method Detail
-
inject
public void inject(T value) throws InjectionException
Deprecated.Inject the given value.- Specified by:
inject
in interfaceInjector<T>
- Parameters:
value
- the value- Throws:
InjectionException
- if the injection failed
-
uninject
public void uninject()
Deprecated.Uninject the given value (in other words, cancel or undo a previous injection). Only called afterinject()
has been called.
-
getStoredValue
protected Value<T> getStoredValue()
Deprecated.Get the value object stored in this injector.- Returns:
- the value object
-
-