Packageorg.spicefactory.parsley.core.lifecycle
Interfacepublic interface LifecycleObserver
Implementors DefaultLifecycleObserver

Represents an observer that gets notified when matching objects reach a particular phase in their lifecycle.



Public Properties
 PropertyDefined By
  objectId : String
[read-only] The optional id of the object as registered in the Context.
LifecycleObserver
  observedType : Class
[read-only] The type of the objects the observer is interested in.
LifecycleObserver
  phase : Phase
[read-only] The phase of the object lifecycle that should trigger the observer.
LifecycleObserver
Public Methods
 MethodDefined By
  
observe(observed:Object):void
Invoked when any matching object reaches the specified phase in its lifecycle.
LifecycleObserver
Property Detail
objectIdproperty
objectId:String  [read-only]

The optional id of the object as registered in the Context. If omitted all matching types will be observed.


Implementation
    public function get objectId():String
observedTypeproperty 
observedType:Class  [read-only]

The type of the objects the observer is interested in.


Implementation
    public function get observedType():Class
phaseproperty 
phase:Phase  [read-only]

The phase of the object lifecycle that should trigger the observer.


Implementation
    public function get phase():Phase
Method Detail
observe()method
public function observe(observed:Object):void

Invoked when any matching object reaches the specified phase in its lifecycle.

Parameters

observed:Object — the observerd instance