Default implementation of the LifecycleBuilder interface.
public function DefaultLifecycleBuilder(context:ObjectDefinitionContext)
Creates a new instance.
Parameters public function asyncInit():AsyncInitBuilder
Sets this object as asynchronously initializing. Such an object will not be considered
as fully initialized before it has thrown its complete event. Only has an effect for
singleton definition.
Returns | AsyncInitBuilder — a builder for asynchronous object initialization in case custom event types need to be specified
|
public function definitionReplacer(replacer:ObjectDefinitionReplacer):LifecycleBuilder
Sets the instance that will replace (or wrap) the final object definition.
This is an advanced feature. From all the builtin tags only the Factory tag
uses this hook.
Parameters
Returns public function instantiator(value:ObjectInstantiator):LifecycleBuilder
Sets the object responsible for creating instances from this definition.
Parameters
| value:ObjectInstantiator — the object responsible for creating instances from this definition.
|
Returns public function messageReceiverFactory(factory:MessageReceiverFactory, scope:String = null):LifecycleBuilder
Sets a custom message receiver factory. Such a factory is useful if a target object
needs to use a custom way of receiving a message not provided by the builtin implementations
of the various message receiver interfaces. The factory will be invoked for each
Parameters
| factory:MessageReceiverFactory — a custom message receiver factory to be used for the target definition
|
| |
| scope:String (default = null) — the scope the custom receiver will listen to, the default is 'global'
|
Returns public function processorFactory(factory:ObjectProcessorFactory):LifecycleBuilder
Sets a custom object processor factory. The factory creates a new objects processor
for each instance produced by the definition created by this builder. The processor
in turn will be invoked for the target object's key lifecycle events.
Parameters
Returns
Sat Apr 2 2011, 11:49 PM +01:00