Packageorg.spicefactory.parsley.comobserver.tag
Classpublic class CommandStatusDecorator
InheritanceCommandStatusDecorator Inheritance Object
Implements ObjectDefinitionDecorator

Represents a Metadata, MXML or XML tag that can be used on properties that serve as a flag for indicating whether any matching asynchronous command is currently active.



Public Properties
 PropertyDefined By
  property : String
The name of the property that serves as a status flag.
CommandStatusDecorator
  scope : String
The name of the scope this tag should be applied to.
CommandStatusDecorator
  selector : *
An optional selector value to be used in addition to selecting messages by type.
CommandStatusDecorator
  type : Class
The type of the messages the receiver wants to handle.
CommandStatusDecorator
Public Methods
 MethodDefined By
  
Method to be invoked by the container for each configuration tag it encounters for an object that was added to the container.
CommandStatusDecorator
Property Detail
propertyproperty
public var property:String

The name of the property that serves as a status flag.

scopeproperty 
public var scope:String

The name of the scope this tag should be applied to.

selectorproperty 
public var selector:*

An optional selector value to be used in addition to selecting messages by type. Will be checked against the value of the property in the message marked with [Selector] or against the event type if the message is an event and does not have a selector property specified explicitly.

typeproperty 
public var type:Class

The type of the messages the receiver wants to handle.

Method Detail
decorate()method
public function decorate(builder:ObjectDefinitionBuilder):void

Method to be invoked by the container for each configuration tag it encounters for an object that was added to the container. It doesn't matter whether it is a builtin configuration tag or a custom extension tag, or whether it is a metadata tag, an MXML or XML tag. As long as the tag is mapped to a class that implements this interface the container will invoke it for each tag on each object.

The builder parameter getting passed to the decorator can be used to customize the ObjectDefinition that is currently getting processed. In most custom tag implementations you will peform tasks like specifying constructor arguments, property values, message receivers, custom lifecycle processors or instantiators.

A decorator is also allowed to register additional definitions through using builder.newBuilder. Those additional definitions might describe collaborators that the processed definition will need to operate for example. If you want to register collaborators that are globally accessible (or within a certain scope) you may consider adding them to the ScopeExtensionRegistry in the GlobalFactoryRegistry instead.

Parameters

builder:ObjectDefinitionBuilder — the builder that can be used to modify the target definition