Package | org.spicefactory.parsley.core.lifecycle.impl |
Class | public class DefaultManagedObjectHandler |
Inheritance | DefaultManagedObjectHandler Object |
Implements | ManagedObjectHandler |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
DefaultManagedObjectHandler(definition:ObjectDefinition, context:Context, manager:DefaultObjectLifecycleManager)
Creates a new instance. | DefaultManagedObjectHandler | ||
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. | DefaultManagedObjectHandler | ||
createObject():void
Instantiates a new instance based on its ObjectDefinition. | DefaultManagedObjectHandler | ||
destroyObject():void
Processes lifecycle listeners for the object before it will be removed from the Context. | DefaultManagedObjectHandler |
Method | Defined By | ||
---|---|---|---|
createProcessors():void
Processes all processor factories of the specified definition and creates new processors for
the target instance. | DefaultManagedObjectHandler | ||
invokeDestroyMethods():void
Invokes the postDestroy methods on all processor for the specified target instance. | DefaultManagedObjectHandler | ||
invokeInitMethods():void
Invokes the preInit methods on all processor for the specified target instance. | DefaultManagedObjectHandler |
processors | property |
processors:Array
[read-only]
The processors that configure the target object.
The Array does not get populated until the configureObject
method is called.
public function get processors():Array
target | property |
target:ManagedObject
[read-only] The target object controlled by this handler.
public function get target():ManagedObject
DefaultManagedObjectHandler | () | Constructor |
public function DefaultManagedObjectHandler(definition:ObjectDefinition, context:Context, manager:DefaultObjectLifecycleManager)
Creates a new instance.
Parametersdefinition:ObjectDefinition — the definition this handler will manage
| |
context:Context — the Context the definition belongs to
| |
manager:DefaultObjectLifecycleManager — the manager responsible for this handler
|
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.