Packageorg.spicefactory.parsley.core.processor
Classpublic class DestroyPhase
InheritanceDestroyPhase Inheritance Object
Implements Phase

Represents a phase during object destruction (the time when an object gets removed from a Context).



Public Properties
 PropertyDefined By
  typeKey : String
[read-only]
DestroyPhase
Public Methods
 MethodDefined By
  
Compares this phase value to the specified other phase value.
DestroyPhase
  
destroy(order:int = 0):DestroyPhase
[static] Represents the phase during which the Destroy method on the target instance gets invoked in.
DestroyPhase
  
postDestroy(order:int = 0):DestroyPhase
[static] Represents the phase after the Destroy method on the target instance gets invoked.
DestroyPhase
  
preDestroy(order:int = 0):DestroyPhase
[static] Represents the phase before the Destroy method on the target instance gets invoked.
DestroyPhase
Property Detail
typeKeyproperty
typeKey:String  [read-only]


Implementation
    public function get typeKey():String
Method Detail
compareTo()method
public function compareTo(other:DestroyPhase):int

Compares this phase value to the specified other phase value. Returns -1 if this phase is before the other one, 1 if it comes after the other phase and 0 if both are equal. This method can conveniently be used in sort methods.

Parameters

other:DestroyPhase — the other phase instance to compare this instance to

Returns
int — an integer indicating whether this phase comes before or after the other
destroy()method 
public static function destroy(order:int = 0):DestroyPhase

Represents the phase during which the Destroy method on the target instance gets invoked in.

Parameters

order:int (default = 0) — additional ordering within the phase (processed in ascending order)

Returns
DestroyPhase — a new DestroyPhase instance representing the destroy phase and specified order
postDestroy()method 
public static function postDestroy(order:int = 0):DestroyPhase

Represents the phase after the Destroy method on the target instance gets invoked.

Parameters

order:int (default = 0) — additional ordering within the phase (processed in ascending order)

Returns
DestroyPhase — a new DestroyPhase instance representing the post-destroy phase and specified order
preDestroy()method 
public static function preDestroy(order:int = 0):DestroyPhase

Represents the phase before the Destroy method on the target instance gets invoked.

Parameters

order:int (default = 0) — additional ordering within the phase (processed in ascending order)

Returns
DestroyPhase — a new DestroyPhase instance representing the pre-destroy phase and specified order