Packageorg.spicefactory.parsley.core.lifecycle.impl
Classpublic class DefaultManagedObjectHandler
InheritanceDefaultManagedObjectHandler Inheritance Object
Implements ManagedObjectHandler

Default implementation of the ManagedObjectHandler interface.



Public Properties
 PropertyDefined By
  processors : Array
[read-only] The processors that configure the target object.
DefaultManagedObjectHandler
  target : ManagedObject
[read-only] The target object controlled by this handler.
DefaultManagedObjectHandler
Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultManagedObjectHandler
  
Processes the configuration for the specified object and performs dependency injection, message handler registration or invocation of methods marked with [Init] and similar tasks.
DefaultManagedObjectHandler
  
Instantiates a new instance based on its ObjectDefinition.
DefaultManagedObjectHandler
  
Processes lifecycle listeners for the object before it will be removed from the Context.
DefaultManagedObjectHandler
Protected Methods
 MethodDefined By
  
Processes all processor factories of the specified definition and creates new processors for the target instance.
DefaultManagedObjectHandler
  
Invokes the postDestroy methods on all processor for the specified target instance.
DefaultManagedObjectHandler
  
Invokes the preInit methods on all processor for the specified target instance.
DefaultManagedObjectHandler
Property Detail
processorsproperty
processors:Array  [read-only]

The processors that configure the target object. The Array does not get populated until the configureObject method is called.


Implementation
    public function get processors():Array
targetproperty 
target:ManagedObject  [read-only]

The target object controlled by this handler.


Implementation
    public function get target():ManagedObject
Constructor Detail
DefaultManagedObjectHandler()Constructor
public function DefaultManagedObjectHandler(definition:ObjectDefinition, context:Context, manager:DefaultObjectLifecycleManager)

Creates a new instance.

Parameters
definition:ObjectDefinition — the definition this handler will manage
 
context:Context — the Context the definition belongs to
 
manager:DefaultObjectLifecycleManager — the manager responsible for this handler
Method Detail
configureObject()method
public function configureObject():void

Processes the configuration for the specified object and performs dependency injection, message handler registration or invocation of methods marked with [Init] and similar tasks.

createObject()method 
public function createObject():void

Instantiates a new instance based on its ObjectDefinition. This should not include processing its configuration, like performing dependency injection or message handler registration. To allow bidirectional associations this step is deferred until configureObject is invoked.

createProcessors()method 
protected function createProcessors():void

Processes all processor factories of the specified definition and creates new processors for the target instance.

destroyObject()method 
public function destroyObject():void

Processes lifecycle listeners for the object before it will be removed from the Context. This includes invoking methods marked with [Destroy].

invokeDestroyMethods()method 
protected function invokeDestroyMethods():void

Invokes the postDestroy methods on all processor for the specified target instance.

invokeInitMethods()method 
protected function invokeInitMethods():void

Invokes the preInit methods on all processor for the specified target instance.