C# Class Castle.MicroKernel.Lifestyle.AbstractLifestyleManager

Inheritance: ILifestyleManager
Mostra file Open project: castleproject/Windsor

Public Methods

Method Description
Dispose ( ) : void

Invoked when the container gets disposed. The container will not call it multiple times in multithreaded environments. However it may be called at the same time when some out of band release mechanism is in progress. Resolving those potential issues is the task of implementors

Init ( IComponentActivator componentActivator, IKernel kernel, ComponentModel model ) : void
Release ( object instance ) : bool
Resolve ( CreationContext context, IReleasePolicy releasePolicy ) : object

Protected Methods

Method Description
CreateInstance ( CreationContext context, bool trackedExternally ) : Burden
Track ( Burden burden, IReleasePolicy releasePolicy ) : void

Method Details

CreateInstance() protected method

protected CreateInstance ( CreationContext context, bool trackedExternally ) : Burden
context Castle.MicroKernel.Context.CreationContext
trackedExternally bool
return Burden

Dispose() public abstract method

Invoked when the container gets disposed. The container will not call it multiple times in multithreaded environments. However it may be called at the same time when some out of band release mechanism is in progress. Resolving those potential issues is the task of implementors
public abstract Dispose ( ) : void
return void

Init() public method

public Init ( IComponentActivator componentActivator, IKernel kernel, ComponentModel model ) : void
componentActivator IComponentActivator
kernel IKernel
model Castle.Core.ComponentModel
return void

Release() public method

public Release ( object instance ) : bool
instance object
return bool

Resolve() public method

public Resolve ( CreationContext context, IReleasePolicy releasePolicy ) : object
context Castle.MicroKernel.Context.CreationContext
releasePolicy IReleasePolicy
return object

Track() protected method

protected Track ( Burden burden, IReleasePolicy releasePolicy ) : void
burden Burden
releasePolicy IReleasePolicy
return void