프로퍼티 | 타입 | 설명 | |
---|---|---|---|
lifestyleManager | ILifestyleManager |
메소드 | 설명 | |
---|---|---|
AddCustomDependencyValue ( object key, object value ) : void | ||
CanResolve ( |
||
Dispose ( ) : void | ||
HasCustomParameter ( object key ) : bool | ||
Init ( IKernel kernel ) : void |
Saves the kernel instance, subscribes to IKernelEvents.AddedAsChildKernel event, creates the lifestyle manager instance and computes the handler state.
|
|
IsBeingResolvedInContext ( CreationContext context ) : bool | ||
ObtainDependencyDetails ( IList dependenciesChecked ) : String |
Returns human readable list of dependencies this handler is waiting for.
|
|
Release ( object instance ) : bool |
disposes the component instance (or recycle it).
|
|
ReleaseCore ( object instance ) : bool |
Should be implemented by derived classes: disposes the component instance (or recycle it)
|
|
RemoveCustomDependencyValue ( object key ) : void | ||
Resolve ( CreationContext context ) : object |
Returns an instance of the component this handler is responsible for
|
|
Resolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : object | ||
TryResolve ( CreationContext context ) : object |
메소드 | 설명 | |
---|---|---|
AbstractHandler ( |
Constructs and initializes the handler
|
|
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 |
|
CanSatisfyConstructor ( |
||
CanSatisfyDependency ( |
||
CreateLifestyleManager ( IComponentActivator activator ) : ILifestyleManager |
Creates an implementation of ILifestyleManager based on LifestyleType and invokes ILifestyleManager.Init to initialize the newly created manager.
|
|
DependencySatisfied ( 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 ( IDependencyAwareActivator activator ) : 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, EventArgs e ) : void |
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. |
|
Resolve ( CreationContext context, bool instanceRequired ) : object |
Returns an instance of the component this handler is responsible for
|
|
ResolveCore ( CreationContext context, bool requiresDecommission, bool instanceRequired ) : object |
Should be implemented by derived classes: returns an instance of the component this handler is responsible for
|
|
SetNewState ( HandlerState newState ) : void |
메소드 | 설명 | |
---|---|---|
AddGraphDependency ( IHandler handler ) : void | ||
DisconnectEvents ( ) : void | ||
GetBestCandidatesByDependencyType ( IEnumerable |
||
GetCandidateConstructors ( ) : IEnumerable |
||
GetSecuredDependencies ( ) : IEnumerable |
||
HandlerStateChanged ( object source, EventArgs args ) : void |
Handler for the event OnHandlerStateChanged
|
|
HasValidComponent ( String key, DependencyModel dependency ) : bool | ||
HasValidComponent ( Type service, DependencyModel dependency ) : bool | ||
HasValidComponentFromResolver ( DependencyModel dependency ) : bool | ||
InitializeCustomDependencies ( ) : void | ||
IsValidHandlerState ( IHandler handler ) : bool | ||
RaiseHandlerStateChanged ( ) : void | ||
SelectMostValuableCandidate ( IEnumerable |
||
SelectMostValuableCandidateByName ( IEnumerable |
||
Union ( ICollection |
protected AbstractHandler ( |
||
model | ||
리턴 | System |
public AddCustomDependencyValue ( object key, object value ) : void | ||
key | object | |
value | object | |
리턴 | void |
protected AddDependency ( |
||
dependency | ||
리턴 | void |
public CanResolve ( |
||
context | ||
contextHandlerResolver | ISubDependencyResolver | |
model | ||
dependency | ||
리턴 | bool |
protected CanSatisfyConstructor ( |
||
constructor | ||
리턴 | bool |
protected CanSatisfyDependency ( |
||
dependency | ||
리턴 | bool |
protected CreateLifestyleManager ( IComponentActivator activator ) : ILifestyleManager | ||
activator | IComponentActivator | |
리턴 | ILifestyleManager |
protected DependencySatisfied ( bool &stateChanged ) : void | ||
stateChanged | bool | |
리턴 | void |
protected EnsureDependenciesCanBeSatisfied ( IDependencyAwareActivator activator ) : void | ||
activator | IDependencyAwareActivator | |
리턴 | void |
public IsBeingResolvedInContext ( CreationContext context ) : bool | ||
context | CreationContext | |
리턴 | bool |
public ObtainDependencyDetails ( IList dependenciesChecked ) : String | ||
dependenciesChecked | IList | |
리턴 | String |
protected OnAddedAsChildKernel ( object sender, EventArgs e ) : void | ||
sender | object | |
e | EventArgs | |
리턴 | void |
public abstract ReleaseCore ( object instance ) : bool | ||
instance | object | |
리턴 | bool |
public RemoveCustomDependencyValue ( object key ) : void | ||
key | object | |
리턴 | void |
public Resolve ( CreationContext context ) : object | ||
context | CreationContext | |
리턴 | object |
public Resolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : object | ||
context | CreationContext | |
contextHandlerResolver | ISubDependencyResolver | |
model | ComponentModel | |
dependency | DependencyModel | |
리턴 | object |
protected Resolve ( CreationContext context, bool instanceRequired ) : object | ||
context | CreationContext | |
instanceRequired | bool | when |
리턴 | object |
protected abstract ResolveCore ( CreationContext context, bool requiresDecommission, bool instanceRequired ) : object | ||
context | CreationContext | |
requiresDecommission | bool | |
instanceRequired | bool | When |
리턴 | object |
protected SetNewState ( HandlerState newState ) : void | ||
newState | HandlerState | |
리턴 | void |
public TryResolve ( CreationContext context ) : object | ||
context | CreationContext | |
리턴 | object |