Packageorg.spicefactory.parsley.resources.processor
Classpublic class ResourceBindingProcessor
InheritanceResourceBindingProcessor Inheritance Object
Implements PropertyProcessor, StatefulProcessor

Processes a resource binding for a single target property. The resource value will be injected at the time the object is constructed and then each time the corresponding ResourceManager updates.



Public Properties
 PropertyDefined By
  adapterClass : Class
[static] The type of the adapter to use.
ResourceBindingProcessor
Public Methods
 MethodDefined By
  
ResourceBindingProcessor(bundle:String, key:String)
Creates a new processor instance.
ResourceBindingProcessor
  
Creates a clone of this processor by omitting all internal state that is tied to one particular target instance.
ResourceBindingProcessor
  
destroy(target:ManagedObject):void
Invoked when the target instance gets removed from the Context.
ResourceBindingProcessor
  
init(target:ManagedObject):void
Invoked during initialization of the target instance.
ResourceBindingProcessor
  
targetProperty(property:Property):void
Sets the target property for this processor.
ResourceBindingProcessor
Property Detail
adapterClassproperty
public static var adapterClass:Class

The type of the adapter to use. The processor need to adapt to either the Flex ResourceManager or the Parsley Flash ResourceManager.

Constructor Detail
ResourceBindingProcessor()Constructor
public function ResourceBindingProcessor(bundle:String, key:String)

Creates a new processor instance.

Parameters
bundle:String — the key for the resource
 
key:String — the bundle name
Method Detail
clone()method
public function clone():StatefulProcessor

Creates a clone of this processor by omitting all internal state that is tied to one particular target instance.

Returns
StatefulProcessor — a clone of this processor
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

targetProperty()method 
public function targetProperty(property:Property):void

Sets the target property for this processor.

Parameters

property:Property — the target property for this processor