| Package | org.spicefactory.parsley.lifecycle.observer | 
| Class | public class DefaultLifecycleObserver | 
| Inheritance | DefaultLifecycleObserver    Object | 
| Implements | LifecycleObserver | 
| Property | Defined By | ||
|---|---|---|---|
| objectId : String [read-only] 
	 
	 The optional id of the object as registered in the Context.  | DefaultLifecycleObserver | ||
| observedType : Class [read-only] 
	 
	 The type of the objects the observer is interested in.  | DefaultLifecycleObserver | ||
| phase : Phase [read-only] 
	 
	 The phase of the object lifecycle that should trigger the observer.  | DefaultLifecycleObserver | ||
| Method | Defined By | ||
|---|---|---|---|
DefaultLifecycleObserver(provider:ObjectProvider, method:String, phase:Phase = null, objectId:String = null, explicitType:ClassInfo = null) 
	 Creates a new instance.  | DefaultLifecycleObserver | ||
observe(observed:Object):void 
	 
	 Invoked when any matching object reaches the specified phase in its lifecycle.  | DefaultLifecycleObserver | ||
| objectId | property | 
objectId:String  [read-only] The optional id of the object as registered in the Context. If omitted all matching types will be observed.
    public function get objectId():String| observedType | property | 
observedType:Class  [read-only] The type of the objects the observer is interested in.
    public function get observedType():Class| phase | property | 
phase:Phase  [read-only] The phase of the object lifecycle that should trigger the observer.
    public function get phase():Phase| DefaultLifecycleObserver | () | Constructor | 
public function DefaultLifecycleObserver(provider:ObjectProvider, method:String, phase:Phase = null, objectId:String = null, explicitType:ClassInfo = null)Creates a new instance. The target method must have a single parameter that matches the observed type.
Parametersprovider:ObjectProvider — the provider for the actual instance that contains the observer method
	  | |
method:String — the name of the observer method
	  | |
phase:Phase (default = null) — the phase of the object lifecycle that should trigger the observer
	  | |
objectId:String (default = null) — the optional id of the object as registered in the Context
	  | |
explicitType:ClassInfo (default = null) — the type of object to observe
	  | 
| observe | () | method | 
 public function observe(observed:Object):voidInvoked when any matching object reaches the specified phase in its lifecycle.
Parameters
observed:Object — the observerd instance
	  |