Package org.jboss.msc.inject
Class SetMethodInjector<T>
- java.lang.Object
-
- org.jboss.msc.inject.SetMethodInjector<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Injector<T>
@Deprecated public final class SetMethodInjector<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 calls a setter method.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description SetMethodInjector(Value<?> target, Method method)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> Injector<T>
create(Value<?> target, Method method)
Deprecated.Construct a new instance.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).
-
-
-
Method Detail
-
create
public static <T> Injector<T> create(Value<?> target, Method method)
Deprecated.Construct a new instance.- Parameters:
target
- the object upon which the method is to be calledmethod
- the method to invoke- Returns:
- the new instance
-
inject
public void inject(T value)
Deprecated.Inject the given value.
-
-