|
JBoss Modular Service Kernel API 1.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BatchInjectionBuilder

A builder for a specific injection specification. Create an instance via any of the following methods:
BatchServiceBuilder.addInjection(Object)BatchServiceBuilder.addInjectionValue(org.jboss.msc.value.Value)BatchServiceBuilder.addDependency(ServiceName)
| Method Summary | |
|---|---|
BatchInjectionBuilder |
fromField(Field field)
Specify that the injected value should come from a field on the source object. |
BatchInjectionBuilder |
fromField(String fieldName)
Specify that the injected value should come from a field on the source object. |
BatchInjectionBuilder |
fromFieldValue(Value<Field> fieldValue)
Specify that the injected value should come from a field on the source object. |
BatchInjectionBuilder |
fromMethod(Method method,
List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. |
BatchInjectionBuilder |
fromMethod(Method method,
Value<?> target,
List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. |
BatchInjectionBuilder |
fromMethod(String name)
Specify that the injected value should come from the result of a no-args method call. |
BatchInjectionBuilder |
fromMethod(String name,
List<? extends Value<Class<?>>> parameterTypes,
List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. |
BatchInjectionBuilder |
fromMethod(String name,
Value<?> target)
Specify that the injected value should come from the result of a no-args method call. |
BatchInjectionBuilder |
fromMethod(String name,
Value<?> target,
List<? extends Value<Class<?>>> parameterTypes,
List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. |
BatchInjectionBuilder |
fromMethodValue(Value<Method> methodValue,
List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. |
BatchInjectionBuilder |
fromMethodValue(Value<Method> methodValue,
Value<?> target,
List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. |
BatchInjectionBuilder |
fromProperty(Property property)
Specify that the injected value should come from a property on the source object. |
BatchInjectionBuilder |
fromProperty(String propertyName)
Specify that the injected value should come from a property on the source object. |
BatchInjectionBuilder |
fromPropertyValue(Value<Property> propertyValue)
Specify that the injected value should come from a property on the source object. |
BatchInjectionBuilder |
toField(Field field)
Specify that the target of injection be a field on the target object. |
BatchInjectionBuilder |
toField(String fieldName)
Specify that the target of injection be a field on the target object. |
BatchInjectionBuilder |
toFieldValue(Value<Field> fieldValue)
Specify that the target of injection be a field on the target object. |
BatchInjectionBuilder |
toInjector(Injector<?> injector)
Specify that the target of injection be an injector. |
BatchInjectionBuilder |
toMethod(Method method,
List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. |
BatchInjectionBuilder |
toMethod(Method method,
Value<?> targetValue,
List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. |
BatchInjectionBuilder |
toMethod(String name)
Specify that the target of injection be a one-argument method on the destination object. |
BatchInjectionBuilder |
toMethod(String name,
List<? extends Value<Class<?>>> parameterTypes,
List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. |
BatchInjectionBuilder |
toMethod(String name,
Value<?> targetValue)
Specify that the target of injection be a one-argument method on the destination object. |
BatchInjectionBuilder |
toMethod(String name,
Value<?> targetValue,
List<? extends Value<Class<?>>> parameterTypes,
List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. |
BatchInjectionBuilder |
toMethodValue(Value<Method> methodValue,
List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. |
BatchInjectionBuilder |
toMethodValue(Value<Method> methodValue,
Value<?> targetValue,
List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. |
BatchInjectionBuilder |
toProperty(Property property)
Specify that the target of injection be a property on the destination object. |
BatchInjectionBuilder |
toProperty(String property)
Specify that the target of injection be a property on the destination object. |
BatchInjectionBuilder |
toPropertyValue(Value<Property> propertyValue)
Specify that the target of injection be a property on the destination object. |
| Method Detail |
|---|
BatchInjectionBuilder toProperty(String property)
property - the destination property name
BatchInjectionBuilder toProperty(Property property)
property - the destination property
BatchInjectionBuilder toPropertyValue(Value<Property> propertyValue)
propertyValue - the value of the destination property
BatchInjectionBuilder toMethod(String name,
List<? extends Value<Class<?>>> parameterTypes,
List<? extends Value<?>> parameterValues)
Values.injectedValue() value; the
destination object can be referenced with the Values.thisValue() value.
name - the method nameparameterTypes - the parameter type valuesparameterValues - the parameter values
BatchInjectionBuilder toMethod(Method method,
List<? extends Value<?>> parameterValues)
Values.injectedValue() value; the
destination object can be referenced with the Values.thisValue() value.
method - the methodparameterValues - the parameter values
BatchInjectionBuilder toMethodValue(Value<Method> methodValue,
List<? extends Value<?>> parameterValues)
Values.injectedValue() value; the
destination object can be referenced with the Values.thisValue() value.
methodValue - the method valueparameterValues - the parameter values
BatchInjectionBuilder toMethod(String name,
Value<?> targetValue,
List<? extends Value<Class<?>>> parameterTypes,
List<? extends Value<?>> parameterValues)
Values.injectedValue() value; the
destination object can be referenced with the Values.thisValue() value.
name - the method nametargetValue - the value upon which the method should be invoked (use Values.nullValue() for static methods)parameterTypes - the parameter type valuesparameterValues - the parameter values
BatchInjectionBuilder toMethod(Method method,
Value<?> targetValue,
List<? extends Value<?>> parameterValues)
Values.injectedValue() value; the
destination object can be referenced with the Values.thisValue() value.
method - the methodparameterValues - the parameter values
BatchInjectionBuilder toMethodValue(Value<Method> methodValue,
Value<?> targetValue,
List<? extends Value<?>> parameterValues)
Values.injectedValue() value; the
destination object can be referenced with the Values.thisValue() value.
methodValue - the method valuetargetValue - the value upon which the method should be invoked (use Values.nullValue() for static methods)parameterValues - the parameter values
BatchInjectionBuilder toMethod(String name)
name - the method name
BatchInjectionBuilder toMethod(String name,
Value<?> targetValue)
name - the method nametargetValue - the value upon which the method should be invoked (use Values.nullValue() for static methods)
BatchInjectionBuilder toField(String fieldName)
fieldName - the name of the field
BatchInjectionBuilder toField(Field field)
field - the field
BatchInjectionBuilder toFieldValue(Value<Field> fieldValue)
fieldValue - the field value
BatchInjectionBuilder toInjector(Injector<?> injector)
injector - the target
BatchInjectionBuilder fromProperty(String propertyName)
propertyName - the property name
BatchInjectionBuilder fromProperty(Property property)
property - the property
BatchInjectionBuilder fromPropertyValue(Value<Property> propertyValue)
propertyValue - the property value
BatchInjectionBuilder fromMethod(String name,
List<? extends Value<Class<?>>> parameterTypes,
List<? extends Value<?>> parameterValues)
Values.thisValue() value.
name - the name of the method to invokeparameterTypes - the parameter types of the methodparameterValues - the parameter values
BatchInjectionBuilder fromMethod(String name,
Value<?> target,
List<? extends Value<Class<?>>> parameterTypes,
List<? extends Value<?>> parameterValues)
Values.thisValue() value.
name - the name of the method to invoketarget - the object upon which to invoke the method (use Values.nullValue() for static methods)parameterTypes - the parameter types of the methodparameterValues - the parameter values
BatchInjectionBuilder fromMethod(String name)
name - the name of the method to invoke
BatchInjectionBuilder fromMethod(String name,
Value<?> target)
name - the name of the method to invoketarget - the object upon which to invoke the method (use Values.nullValue() for static methods)
BatchInjectionBuilder fromMethod(Method method,
List<? extends Value<?>> parameterValues)
Values.thisValue() value.
method - the method to invokeparameterValues - the parameter values
BatchInjectionBuilder fromMethod(Method method,
Value<?> target,
List<? extends Value<?>> parameterValues)
Values.thisValue() value.
method - the method to invoketarget - the object upon which to invoke the method (use Values.nullValue() for static methods)parameterValues - the parameter values
BatchInjectionBuilder fromMethodValue(Value<Method> methodValue,
List<? extends Value<?>> parameterValues)
Values.thisValue() value.
methodValue - the method value to invokeparameterValues - the parameter values
BatchInjectionBuilder fromMethodValue(Value<Method> methodValue,
Value<?> target,
List<? extends Value<?>> parameterValues)
Values.thisValue() value.
methodValue - the method value to invoketarget - the object upon which to invoke the method (use Values.nullValue() for static methods)parameterValues - the parameter values
BatchInjectionBuilder fromField(String fieldName)
fieldName - the field name
BatchInjectionBuilder fromField(Field field)
field - the field
BatchInjectionBuilder fromFieldValue(Value<Field> fieldValue)
fieldValue - the field value
|
JBoss Modular Service Kernel API 1.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||