|
JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.inject.SetMethodInjector<T>
T - the value typepublic final class SetMethodInjector<T>
An injector which calls a setter method.
| Constructor Summary | |
|---|---|
SetMethodInjector(C target,
Class<C> clazz,
String methodName,
Class<T> paramType)
Construct a new instance. |
|
SetMethodInjector(Value<?> target,
Method method)
Construct a new instance. |
|
SetMethodInjector(Value<?> target,
Value<Method> methodValue)
Construct a new instance. |
|
SetMethodInjector(Value<? extends C> target,
Class<C> clazz,
String methodName,
Class<T> paramType)
Construct a new instance. |
|
| Method Summary | ||
|---|---|---|
static
|
create(Value<?> target,
Method method)
Construct a new instance. |
|
static
|
create(Value<?> target,
Value<Method> methodValue)
Construct a new instance. |
|
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 |
|---|
public SetMethodInjector(Value<?> target,
Value<Method> methodValue)
target - the object upon which the method is to be calledmethodValue - the method to invoke
public SetMethodInjector(Value<?> target,
Method method)
target - the object upon which the method is to be calledmethod - the method to invoke
public SetMethodInjector(Value<? extends C> target,
Class<C> clazz,
String methodName,
Class<T> paramType)
C - the type of the class upon which the method may be foundtarget - the object upon which the method is to be calledclazz - the class upon which the method may be foundmethodName - the setter method nameparamType - the parameter type
public SetMethodInjector(C target,
Class<C> clazz,
String methodName,
Class<T> paramType)
C - the type of the class upon which the method may be foundtarget - the object upon which the method is to be calledclazz - the class upon which the method may be foundmethodName - the setter method nameparamType - the parameter type| Method Detail |
|---|
public static <T> Injector<T> create(Value<?> target,
Value<Method> methodValue)
target - the object upon which the method is to be calledmethodValue - the method to invoke
public static <T> Injector<T> create(Value<?> target,
Method method)
target - the object upon which the method is to be calledmethod - the method to invokepublic void inject(T value)
inject in interface Injector<T>value - the valuepublic void uninject()
inject()
has been called.
uninject in interface Injector<T>
|
JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||