Packageorg.spicefactory.parsley.lifecycle.processor
Classpublic class InitMethodProcessor
InheritanceInitMethodProcessor Inheritance Object
Implements MethodProcessor

Processor responsible for invoking a target method when the object gets initialized.



Public Methods
 MethodDefined By
  
destroy(target:ManagedObject):void
Invoked when the target instance gets removed from the Context.
InitMethodProcessor
  
init(target:ManagedObject):void
Invoked during initialization of the target instance.
InitMethodProcessor
  
targetMethod(method:Method):void
Sets the target method for this processor.
InitMethodProcessor
Method Detail
destroy()method
public function destroy(target:ManagedObject):void

Invoked when the target instance gets removed from the Context. Implementations will usually unregister message receivers, unwatch bindings, remove listeners or perform similar disposal tasks.

Parameters

target:ManagedObject — the target instance that is getting removed from the Context

init()method 
public function init(target:ManagedObject):void

Invoked during initialization of the target instance. Implementations will usually set properties, registers message receivers or performs similar configuration tasks for the target instance managed by this processor.

Parameters

target:ManagedObject — the target instance that is getting initialized

targetMethod()method 
public function targetMethod(method:Method):void

Sets the target method for this processor.

Parameters

method:Method — the target method for this processor