Packageorg.spicefactory.parsley.processor.util
Classpublic class ObjectProcessorFactories
InheritanceObjectProcessorFactories Inheritance Object

Utility methods for creating ObjectProcessorFactory instances.



Public Methods
 MethodDefined By
  
newFactory(processorType:Class, additionalArgs:Array = null):ObjectProcessorFactory
[static] Create a new processor factory instance of the specified type, using the provided constructor arguments.
ObjectProcessorFactories
Method Detail
newFactory()method
public static function newFactory(processorType:Class, additionalArgs:Array = null):ObjectProcessorFactory

Create a new processor factory instance of the specified type, using the provided constructor arguments. The specified arguments will always be added to the target argument of type ManagedObject which will always be the first argument. The specified type must implement the ObjectProcessor interface.

Parameters

processorType:Class — the type of processor to create
 
additionalArgs:Array (default = null) — constructor arguments for the processor in addition to the target argument

Returns
ObjectProcessorFactory — a new ObjectProcessorFactory instance