Packageorg.spicefactory.parsley.core.lifecycle
Interfacepublic interface ObjectLifecycleManager
Implementors DefaultObjectLifecycleManager

Responsible for managing the lifecycle of objects, creating and destroying their handlers. It is used as a strategy in the builtin Context implementations.



Public Methods
 MethodDefined By
  
Creates a new handler for the specified ObjectDefinition.
ObjectLifecycleManager
  
destroyAll():void
Destroys all managed objects created by this instance.
ObjectLifecycleManager
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.