Packageorg.spicefactory.parsley.core.processor
Interfacepublic interface ObjectProcessor
Implementors DynamicPropertyProcessor

Responsible for processing an object when it gets initialized or destroyed. This is one of the major hooks that configuration tags and other mechanisms may use to configure an object. The init method usually sets properties, registers message receivers or performs similar configuration tasks for a target object.

If the container should manage a separate processor instance for each target instance the processor also has to implement the StatefulProcessor interface.



Public Methods
 MethodDefined By
  
destroy(target:ManagedObject):void
Invoked when the target instance gets removed from the Context.
ObjectProcessor
  
init(target:ManagedObject):void
Invoked during initialization of the target instance.
ObjectProcessor
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