Packageorg.spicefactory.parsley.core.builder.impl
Classpublic class DefaultMethodBuilder
InheritanceDefaultMethodBuilder Inheritance Object
Implements MethodBuilder, ObjectDefinitionBuilderPart

Default MethodBuilder implementation.



Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultMethodBuilder
  
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
DefaultMethodBuilder
  
invoke(... params):void
Instructs the builder to invoke the target method with the specified parameters during initialization of the target instance.
DefaultMethodBuilder
  
Adds a processor for this method.
DefaultMethodBuilder
Constructor Detail
DefaultMethodBuilder()Constructor
public function DefaultMethodBuilder(method:Method)

Creates a new instance.

Parameters
method:Method — the method to configure
Method Detail
apply()method
public function apply(target:ObjectDefinition):void

Applies this builder part to the final definition

Parameters

target:ObjectDefinition — the final definition to apply this part to

invoke()method 
public function invoke(... params):void

Instructs the builder to invoke the target method with the specified parameters during initialization of the target instance. Parameters may be a simple values or instances that implements ResolvableValue to be resolved at the time the method will get invoked, like those values returned by Inject.byType() and related methods.

Parameters

... params — the method parameters

process()method 
public function process(processor:MethodProcessor):MethodProcessorBuilder

Adds a processor for this method.

Parameters

processor:MethodProcessor — the method processor to add

Returns
MethodProcessorBuilder — a builder for configuring the processor