Property | Type | Description | |
---|---|---|---|
lifestyleManager | ILifestyleManager |
Method | Description | |
---|---|---|
AbstractHandler ( |
Constructs and initializes the handler
|
|
AddCustomDependencyValue ( string key, object value ) : void |
TODO: Pendent
|
|
CanResolve ( CreationContext context, ISubDependencyResolver parentResolver, |
||
Dispose ( ) : void | ||
HasCustomParameter ( string key ) : bool |
TODO: Pendent
|
|
Init ( IKernel kernel ) : void |
Saves the kernel instance, subscribes to IKernelEvents.AddedAsChildKernel event, creates the lifestyle manager instance and computes the handler state.
|
|
ObtainDependencyDetails ( IList dependenciesChecked ) : String |
Returns human readable list of dependencies this handler is waiting for.
|
|
Release ( object instance ) : void |
Should be implemented by derived classes: disposes the component instance (or recycle it)
|
|
RemoveCustomDependencyValue ( string key ) : void |
TODO: Pendent
|
|
Resolve ( CreationContext context ) : object |
Should be implemented by derived classes: returns an instance of the component this handler is responsible for
|
|
Resolve ( CreationContext context, ISubDependencyResolver parentResolver, |
Method | Description | |
---|---|---|
AddDependency ( |
Invoked by EnsureDependenciesCanBeSatisfied in order to check if a dependency can be satisfied. If not, the handler is set to a 'waiting dependency' state. This method registers the dependencies within the correct collection or dictionary and changes the handler state to HandlerState.WaitingDependency |
|
CreateLifestyleManager ( IComponentActivator activator ) : ILifestyleManager |
Creates an implementation of ILifestyleManager based on LifestyleType and invokes ILifestyleManager.Init to initialize the newly created manager.
|
|
DependencySatisfied ( IHandler handler, bool &stateChanged ) : void |
Invoked by the kernel when one of registered dependencies were satisfied by new components registered. Handler for the event IKernelEvents.HandlerRegistered |
|
EnsureDependenciesCanBeSatisfied ( ) : void |
Checks if the handler is able to, at very least, satisfy the dependencies for the constructor with less parameters For each non*optional dependency, the implementation will invoke AddDependency |
|
OnAddedAsChildKernel ( object sender, |
Invoked when the container receives a parent container reference. This method implementation checks whether the parent container is able to supply the dependencies for this handler. |
|
SetNewState ( HandlerState newState ) : void |
Method | Description | |
---|---|---|
AddGraphDependency ( |
||
DisconnectEvents ( ) : void | ||
HandlerStateChanged ( object source, |
Handler for the event OnHandlerStateChanged
|
|
HasValidComponent ( String key ) : bool | ||
HasValidComponent ( |
||
IsValidHandlerState ( IHandler handler ) : bool | ||
RaiseHandlerStateChanged ( ) : void | ||
Union ( ICollection firstset, ICollection secondset ) : Castle.Core.DependencyModel[] |
public AbstractHandler ( |
||
model | ||
return | System |
public AddCustomDependencyValue ( string key, object value ) : void | ||
key | string | |
value | object | |
return | void |
protected AddDependency ( |
||
dependency | ||
return | void |
public CanResolve ( CreationContext context, ISubDependencyResolver parentResolver, |
||
context | CreationContext | |
parentResolver | ISubDependencyResolver | |
model | ||
dependency | ||
return | bool |
protected CreateLifestyleManager ( IComponentActivator activator ) : ILifestyleManager | ||
activator | IComponentActivator | |
return | ILifestyleManager |
protected DependencySatisfied ( IHandler handler, bool &stateChanged ) : void | ||
handler | IHandler | |
stateChanged | bool | |
return | void |
protected EnsureDependenciesCanBeSatisfied ( ) : void | ||
return | void |
public HasCustomParameter ( string key ) : bool | ||
key | string | |
return | bool |
public ObtainDependencyDetails ( IList dependenciesChecked ) : String | ||
dependenciesChecked | IList | |
return | String |
protected OnAddedAsChildKernel ( object sender, |
||
sender | object | |
e | ||
return | void |
public abstract Release ( object instance ) : void | ||
instance | object | |
return | void |
public RemoveCustomDependencyValue ( string key ) : void | ||
key | string | |
return | void |
public abstract Resolve ( CreationContext context ) : object | ||
context | CreationContext | |
return | object |
public Resolve ( CreationContext context, ISubDependencyResolver parentResolver, |
||
context | CreationContext | |
parentResolver | ISubDependencyResolver | |
model | ||
dependency | ||
return | object |
protected SetNewState ( HandlerState newState ) : void | ||
newState | HandlerState | |
return | void |