JBoss Modular Service Kernel API 1.0.0.Beta1

org.jboss.msc.service
Interface BatchInjectionBuilder


public interface BatchInjectionBuilder

A builder for a specific injection specification. Create an instance via any of the following methods:

Author:
David M. Lloyd

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

toProperty

BatchInjectionBuilder toProperty(String property)
Specify that the target of injection be a property on the destination object.

Parameters:
property - the destination property name
Returns:
this builder

toProperty

BatchInjectionBuilder toProperty(Property property)
Specify that the target of injection be a property on the destination object.

Parameters:
property - the destination property
Returns:
this builder

toPropertyValue

BatchInjectionBuilder toPropertyValue(Value<Property> propertyValue)
Specify that the target of injection be a property on the destination object.

Parameters:
propertyValue - the value of the destination property
Returns:
this builder

toMethod

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. The object being injected can be referenced in the parameter list with the Values.injectedValue() value; the destination object can be referenced with the Values.thisValue() value.

Parameters:
name - the method name
parameterTypes - the parameter type values
parameterValues - the parameter values
Returns:
this builder

toMethod

BatchInjectionBuilder toMethod(Method method,
                               List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. The object being injected can be referenced in the parameter list with the Values.injectedValue() value; the destination object can be referenced with the Values.thisValue() value.

Parameters:
method - the method
parameterValues - the parameter values
Returns:
this builder

toMethodValue

BatchInjectionBuilder toMethodValue(Value<Method> methodValue,
                                    List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. The object being injected can be referenced in the parameter list with the Values.injectedValue() value; the destination object can be referenced with the Values.thisValue() value.

Parameters:
methodValue - the method value
parameterValues - the parameter values
Returns:
this builder

toMethod

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. The object being injected can be referenced in the parameter list with the Values.injectedValue() value; the destination object can be referenced with the Values.thisValue() value.

Parameters:
name - the method name
targetValue - the value upon which the method should be invoked (use Values.nullValue() for static methods)
parameterTypes - the parameter type values
parameterValues - the parameter values
Returns:
this builder

toMethod

BatchInjectionBuilder toMethod(Method method,
                               Value<?> targetValue,
                               List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. The object being injected can be referenced in the parameter list with the Values.injectedValue() value; the destination object can be referenced with the Values.thisValue() value.

Parameters:
method - the method
parameterValues - the parameter values
Returns:
this builder

toMethodValue

BatchInjectionBuilder toMethodValue(Value<Method> methodValue,
                                    Value<?> targetValue,
                                    List<? extends Value<?>> parameterValues)
Specify that the target of injection be a method on the destination object. The object being injected can be referenced in the parameter list with the Values.injectedValue() value; the destination object can be referenced with the Values.thisValue() value.

Parameters:
methodValue - the method value
targetValue - the value upon which the method should be invoked (use Values.nullValue() for static methods)
parameterValues - the parameter values
Returns:
this builder

toMethod

BatchInjectionBuilder toMethod(String name)
Specify that the target of injection be a one-argument method on the destination object.

Parameters:
name - the method name
Returns:
this builder

toMethod

BatchInjectionBuilder toMethod(String name,
                               Value<?> targetValue)
Specify that the target of injection be a one-argument method on the destination object.

Parameters:
name - the method name
targetValue - the value upon which the method should be invoked (use Values.nullValue() for static methods)
Returns:
this builder

toField

BatchInjectionBuilder toField(String fieldName)
Specify that the target of injection be a field on the target object.

Parameters:
fieldName - the name of the field
Returns:
this builder

toField

BatchInjectionBuilder toField(Field field)
Specify that the target of injection be a field on the target object.

Parameters:
field - the field
Returns:
this builder

toFieldValue

BatchInjectionBuilder toFieldValue(Value<Field> fieldValue)
Specify that the target of injection be a field on the target object.

Parameters:
fieldValue - the field value
Returns:
this builder

toInjector

BatchInjectionBuilder toInjector(Injector<?> injector)
Specify that the target of injection be an injector.

Parameters:
injector - the target
Returns:
this builder

fromProperty

BatchInjectionBuilder fromProperty(String propertyName)
Specify that the injected value should come from a property on the source object.

Parameters:
propertyName - the property name
Returns:
this builder

fromProperty

BatchInjectionBuilder fromProperty(Property property)
Specify that the injected value should come from a property on the source object.

Parameters:
property - the property
Returns:
this builder

fromPropertyValue

BatchInjectionBuilder fromPropertyValue(Value<Property> propertyValue)
Specify that the injected value should come from a property on the source object.

Parameters:
propertyValue - the property value
Returns:
this builder

fromMethod

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. The source object can be referenced with the Values.thisValue() value.

Parameters:
name - the name of the method to invoke
parameterTypes - the parameter types of the method
parameterValues - the parameter values
Returns:
this builder

fromMethod

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. The source object can be referenced with the Values.thisValue() value.

Parameters:
name - the name of the method to invoke
target - the object upon which to invoke the method (use Values.nullValue() for static methods)
parameterTypes - the parameter types of the method
parameterValues - the parameter values
Returns:
this builder

fromMethod

BatchInjectionBuilder fromMethod(String name)
Specify that the injected value should come from the result of a no-args method call.

Parameters:
name - the name of the method to invoke
Returns:
this builder

fromMethod

BatchInjectionBuilder fromMethod(String name,
                                 Value<?> target)
Specify that the injected value should come from the result of a no-args method call.

Parameters:
name - the name of the method to invoke
target - the object upon which to invoke the method (use Values.nullValue() for static methods)
Returns:
this builder

fromMethod

BatchInjectionBuilder fromMethod(Method method,
                                 List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. The source object can be referenced with the Values.thisValue() value.

Parameters:
method - the method to invoke
parameterValues - the parameter values
Returns:
this builder

fromMethod

BatchInjectionBuilder fromMethod(Method method,
                                 Value<?> target,
                                 List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. The source object can be referenced with the Values.thisValue() value.

Parameters:
method - the method to invoke
target - the object upon which to invoke the method (use Values.nullValue() for static methods)
parameterValues - the parameter values
Returns:
this builder

fromMethodValue

BatchInjectionBuilder fromMethodValue(Value<Method> methodValue,
                                      List<? extends Value<?>> parameterValues)
Specify that the injected value should come from the result of a method call. The source object can be referenced with the Values.thisValue() value.

Parameters:
methodValue - the method value to invoke
parameterValues - the parameter values
Returns:
this builder

fromMethodValue

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. The source object can be referenced with the Values.thisValue() value.

Parameters:
methodValue - the method value to invoke
target - the object upon which to invoke the method (use Values.nullValue() for static methods)
parameterValues - the parameter values
Returns:
this builder

fromField

BatchInjectionBuilder fromField(String fieldName)
Specify that the injected value should come from a field on the source object.

Parameters:
fieldName - the field name
Returns:
this builder

fromField

BatchInjectionBuilder fromField(Field field)
Specify that the injected value should come from a field on the source object.

Parameters:
field - the field
Returns:
this builder

fromFieldValue

BatchInjectionBuilder fromFieldValue(Value<Field> fieldValue)
Specify that the injected value should come from a field on the source object.

Parameters:
fieldValue - the field value
Returns:
this builder

JBoss Modular Service Kernel API 1.0.0.Beta1

Copyright © 2010 JBoss, a division of Red Hat, Inc.