Package | org.spicefactory.parsley.core.lifecycle |
Interface | public interface ManagedObjectHandler |
Implementors | DefaultManagedObjectHandler |
Property | Defined By | ||
---|---|---|---|
processors : Array [read-only]
The processors that configure the target object. | ManagedObjectHandler | ||
target : ManagedObject [read-only]
The target object controlled by this handler. | ManagedObjectHandler |
Method | Defined By | ||
---|---|---|---|
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. | ManagedObjectHandler | ||
createObject():void
Instantiates a new instance based on its ObjectDefinition. | ManagedObjectHandler | ||
destroyObject():void
Processes lifecycle listeners for the object before it will be removed from the Context. | ManagedObjectHandler |
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
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.
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]
.