| Package | org.spicefactory.parsley.core.lifecycle.impl |
| Class | public class DefaultObjectLifecycleManager |
| Inheritance | DefaultObjectLifecycleManager Object |
| Implements | ObjectLifecycleManager, InitializingService |
| Method | Defined 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 | ||
| DefaultObjectLifecycleManager | () | Constructor |
public function DefaultObjectLifecycleManager()Creates a new instance.
| createHandler | () | method |
public function createHandler(definition:ObjectDefinition, context:Context):ManagedObjectHandlerCreates 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
|
ManagedObjectHandler — a new handler for the specified ObjectDefinition
|
| destroyAll | () | method |
public function destroyAll():voidDestroys 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):voidInvoked 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
|