Packageorg.swizframework.processors
Classpublic final class ProcessorPriority
InheritanceProcessorPriority Inheritance Object

The ProcessorPriority class defines constant values for the priority property of IProcessor instances.

The higher the number, the higher the priority of the processor. All processors with priority N will be executed before processors with priority N - 1. If two or more processors share the same priority, they are processed in the order in which they were added.

Priorities can be positive, 0, or negative. The default priority is 500.

You should not write code that depends on the numeric values of these constants. They are subject to change in future versions of Swiz.



Public Constants
 ConstantDefined By
  DEFAULT : int = 500
[static] Default priority used by BaseMetadataProcessor.
ProcessorPriority
  DISPATCHER : int = 400
[static] Built-in DispatcherProcessor uses this priority.
ProcessorPriority
  INJECT : int = 200
[static] Built-in InjectProcessor is the second native processor run to satisfy declared dependencies in any beans/components provided to Swiz.
ProcessorPriority
  MEDIATE : int = 300
[static] Built-in MediateProcessor uses this priority.
ProcessorPriority
  POST_CONSTRUCT : int = 700
[static] Built-in PostConstructProcessor runs after InjectProcessor to allow components to do any necessary initialization once their dependencies have been satisfied.
ProcessorPriority
  PRE_DESTROY : int = 800
[static] Built-in PreDestroyProcessor runs during tear down to allow components to do any necessary cleanup to ensure proper disposal.
ProcessorPriority
  SWIZ_INTERFACE : int = 600
[static] Built-in SwizInterfaceProcessor runs after DefaultProcessors to allow components to do any necessary initialization based on internal swiz interfaces.
ProcessorPriority
Constant Detail
DEFAULTConstant
public static const DEFAULT:int = 500

Default priority used by BaseMetadataProcessor.

See also

DISPATCHERConstant 
public static const DISPATCHER:int = 400

Built-in DispatcherProcessor uses this priority.

See also

INJECTConstant 
public static const INJECT:int = 200

Built-in InjectProcessor is the second native processor run to satisfy declared dependencies in any beans/components provided to Swiz.

See also

MEDIATEConstant 
public static const MEDIATE:int = 300

Built-in MediateProcessor uses this priority.

See also

POST_CONSTRUCTConstant 
public static const POST_CONSTRUCT:int = 700

Built-in PostConstructProcessor runs after InjectProcessor to allow components to do any necessary initialization once their dependencies have been satisfied.

See also

PRE_DESTROYConstant 
public static const PRE_DESTROY:int = 800

Built-in PreDestroyProcessor runs during tear down to allow components to do any necessary cleanup to ensure proper disposal.

See also

SWIZ_INTERFACEConstant 
public static const SWIZ_INTERFACE:int = 600

Built-in SwizInterfaceProcessor runs after DefaultProcessors to allow components to do any necessary initialization based on internal swiz interfaces.

See also