Packageorg.spicefactory.parsley.processor.resources
Classpublic class ResourceBindingProcessor
InheritanceResourceBindingProcessor Inheritance Object
Implements ObjectProcessor

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(target:ManagedObject, property:Property, key:String, bundle:String)
Creates a new processor instance.
ResourceBindingProcessor
  
newFactory(property:Property, key:String, bundle:String):ObjectProcessorFactory
[static] Creates a new processor factory.
ResourceBindingProcessor
  
Invoked after the destroy method of the target instance has been invoked.
ResourceBindingProcessor
  
preInit():void
Invoked before the init method of the target instance will be invoked.
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(target:ManagedObject, property:Property, key:String, bundle:String)

Creates a new processor instance.

Parameters
target:ManagedObject — the target instance to inject the resource into
 
property:Property — the target property to inject the resource into
 
key:String — the key for the resource
 
bundle:String — the bundle name
Method Detail
newFactory()method
public static function newFactory(property:Property, key:String, bundle:String):ObjectProcessorFactory

Creates a new processor factory.

Parameters

property:Property — the target property to inject the resource into
 
key:String — the key for the resource
 
bundle:String — the bundle name

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.