Packageorg.spicefactory.parsley.core.lifecycle.impl
Classpublic class DefaultObjectLifecycleManager
InheritanceDefaultObjectLifecycleManager Inheritance Object
Implements ObjectLifecycleManager, InitializingService

Default implementation of the ObjectLifecycleManager interface.



Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultObjectLifecycleManager
  
Creates a new handler for the specified ObjectDefinition.
DefaultObjectLifecycleManager
  
destroyAll():void
Destroys all managed objects created by this instance.
DefaultObjectLifecycleManager
  
init(info:BootstrapInfo):void
Invoked once after the service has been instantiated.
DefaultObjectLifecycleManager
Constructor Detail
DefaultObjectLifecycleManager()Constructor
public function DefaultObjectLifecycleManager()

Creates a new instance.

Method Detail
createHandler()method
public function createHandler(definition:ObjectDefinition, context:Context):ManagedObjectHandler

Creates a new handler for the specified ObjectDefinition. The handler instance can then be used to control the lifecycle of a single target object.

Parameters

definition:ObjectDefinition — the definition to create a new handler for
 
context:Context — the Context the object belongs to

Returns
ManagedObjectHandler — a new handler for the specified ObjectDefinition
destroyAll()method 
public function destroyAll():void

Destroys all managed objects created by this instance. This means that implementations have to keep track of all handlers they create.

init()method 
public function init(info:BootstrapInfo):void

Invoked once after the service has been instantiated. The BootstrapInfo instance passed to this method gives access to the settings and collaborating services.

Parameters

info:BootstrapInfo — the environment of the Context building process