Packageorg.spicefactory.parsley.processor.core
Classpublic class MethodProcessor
InheritanceMethodProcessor Inheritance Object
Implements ObjectProcessor

Processor that invokes a method in the target object, potentially resolving references to other objects in the Context for the parameter values.



Public Properties
 PropertyDefined By
  method : Method
[read-only] The method invoked by this processor.
MethodProcessor
  unresolvedParams : *
[read-only] The unresolved parameters for the method invocation.
MethodProcessor
Public Methods
 MethodDefined By
  
MethodProcessor(target:ManagedObject, method:Method, unresolvedParams:Array)
Creates a new processor instance.
MethodProcessor
  
[static] Creates a new processor factory.
MethodProcessor
  
Invoked after the destroy method of the target instance has been invoked.
MethodProcessor
  
preInit():void
Invoked before the init method of the target instance will be invoked.
MethodProcessor
Property Detail
methodproperty
method:Method  [read-only]

The method invoked by this processor.


Implementation
    public function get method():Method
unresolvedParamsproperty 
unresolvedParams:*  [read-only]

The unresolved parameters for the method invocation. Unresolved means that for special objects like references to other objects in the Context, this will be an instance of ResolvableValue that merely represents the actual value.


Implementation
    public function get unresolvedParams():*
Constructor Detail
MethodProcessor()Constructor
public function MethodProcessor(target:ManagedObject, method:Method, unresolvedParams:Array)

Creates a new processor instance.

Parameters
target:ManagedObject — the target to invoke the method on
 
method:Method — the method to invoke
 
unresolvedParams:Array — the unresolved method parameters
Method Detail
newFactory()method
public static function newFactory(method:Method, params:Array):ObjectProcessorFactory

Creates a new processor factory.

Parameters

method:Method — the method to invoke
 
params:Array — the unresolved method parameters

Returns
ObjectProcessorFactory — a new processor factory
postDestroy()method 
public function postDestroy():void

Invoked after the destroy method of the target instance has been invoked. Implementations will usually unregister message receivers, unwatch bindings, remove listeners or perform similar disposal tasks.

preInit()method 
public function preInit():void

Invoked before the init method of the target instance will be invoked. Implementations will usually set properties, registers message receivers or performs similar configuration tasks for the target instance managed by this processor.