Package | org.spicefactory.lib.command.result |
Class | public class ResultProcessor |
Inheritance | ResultProcessor Object |
exists
property to determine whether
an actual processor had been registered for this particular
command or result type.
Property | Defined By | ||
---|---|---|---|
exists : Boolean [read-only]
Indicates whether any command type of factory has been specified
for this result processor registration. | ResultProcessor |
Method | Defined By | ||
---|---|---|---|
newInstance():Object
Creates a new instance of the result processor. | ResultProcessor | ||
processorFactory(factory:Function):void
Specifies the factory to use whenever a new processor
must be created for a matching result. | ResultProcessor | ||
processorType(type:Class):void
Specified the type of command to instantiate and use
as a result processor for each matching result. | ResultProcessor | ||
supports(result:Object):Boolean
Indicates whether this result processor can handle the specified
result. | ResultProcessor |
exists | property |
exists:Boolean
[read-only] Indicates whether any command type of factory has been specified for this result processor registration.
public function get exists():Boolean
newInstance | () | method |
public function newInstance():Object
Creates a new instance of the result processor.
ReturnsObject — a new instance of the result processor
|
processorFactory | () | method |
public function processorFactory(factory:Function):void
Specifies the factory to use whenever a new processor must be created for a matching result. The function must not expect any parameter (the actual result can get passed to the execute method of the new instance).
Parameters
factory:Function — the factory to use whenever a new processor
must be created for a matching result
|
processorType | () | method |
public function processorType(type:Class):void
Specified the type of command to instantiate and use
as a result processor for each matching result.
Instances of this type must be a command that can
get executed through calling Commands.wrap(instance).execute()
.
Parameters
type:Class — the type of command to instantiate and use
as a result processor for each matching result
|
supports | () | method |
public function supports(result:Object):Boolean
Indicates whether this result processor can handle the specified result.
Parameters
result:Object — the result produced by a command
|
Boolean — true when this result processor can handle the specified
result
|