Packageorg.spicefactory.parsley.core.view.processor
Classpublic class FastInjectProcessor
InheritanceFastInjectProcessor Inheritance Object
Implements ViewProcessor

Implementation of the ViewProcessor interface that injects an object into the target from the view without adding the target itself to the Context and thus avoiding expensive reflection on the target.



Public Methods
 MethodDefined By
  
FastInjectProcessor(property:String, type:Class, objectId:String = null)
Creates a new event instance.
FastInjectProcessor
  
destroy():void
Disposes all configuration steps this processor has done in the init method.
FastInjectProcessor
  
init(config:ViewConfiguration, context:Context):void
Processes the target instance of the specified view configuration.
FastInjectProcessor
Constructor Detail
FastInjectProcessor()Constructor
public function FastInjectProcessor(property:String, type:Class, objectId:String = null)

Creates a new event instance.

Parameters
property:String — the property to inject into
 
type:Class — the type of the object to inject
 
objectId:String (default = null) — the id of the object to inject
Method Detail
destroy()method
public function destroy():void

Disposes all configuration steps this processor has done in the init method.

init()method 
public function init(config:ViewConfiguration, context:Context):void

Processes the target instance of the specified view configuration. Depending on the reuse property of the view configuration this method may get invoked multiple time for the same view target.

Parameters

config:ViewConfiguration — the view configuration that holds the target this instance should process
 
context:Context — the Context associated with the target