Package | org.spicefactory.parsley.core.builder.impl |
Class | public class DefaultMethodBuilder |
Inheritance | DefaultMethodBuilder Object |
Implements | MethodBuilder, ObjectDefinitionBuilderPart |
Method | Defined By | ||
---|---|---|---|
DefaultMethodBuilder(method:Method)
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 |
DefaultMethodBuilder | () | Constructor |
public function DefaultMethodBuilder(method:Method)
Creates a new instance.
Parametersmethod:Method — the method to configure
|
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
|
MethodProcessorBuilder — a builder for configuring the processor
|