Package org.jboss.msc.inject
Class AddMethodInjector<T>
- java.lang.Object
-
- org.jboss.msc.inject.RetainingInjector<T>
-
- org.jboss.msc.inject.AddMethodInjector<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Injector<T>
@Deprecated public final class AddMethodInjector<T> extends RetainingInjector<T> 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 calls an add/remove method pair on inject/uninject. Note that this class still adheres to the contract ofInjector
- namely, the same injector cannot be used to inject multiple instances into a collection.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description AddMethodInjector(Value<?> target, Method addMethod, Method removeMethod)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
inject(T value)
Deprecated.Inject the given value.void
uninject()
Deprecated.Uninject the given value (in other words, cancel or undo a previous injection).-
Methods inherited from class org.jboss.msc.inject.RetainingInjector
getStoredValue, setStoredValue
-
-
-
-
Method Detail
-
inject
public void inject(T value)
Deprecated.Inject the given value.
-
-