C# Class Castle.MicroKernel.Handlers.DefaultGenericHandler

Inheritance: AbstractHandler
Show file Open project: castleproject/Windsor Class Usage Examples

Public Methods

Method Description
DefaultGenericHandler ( ComponentModel model, IGenericImplementationMatchingStrategy implementationMatchingStrategy, IGenericServiceStrategy serviceStrategy ) : System
Dispose ( ) : void
ReleaseCore ( Burden burden ) : bool
Supports ( Type service ) : bool
SupportsAssignable ( Type service ) : bool

Protected Methods

Method Description
AdaptServices ( Type closedImplementationType, Type requestedType ) : System.Type[]
BuildSubHandler ( Type closedImplementationType, Type requestedType ) : IHandler
GetSubHandler ( Type genericType, Type requestedType ) : IHandler
InitDependencies ( ) : void
Resolve ( CreationContext context, bool instanceRequired ) : object
SupportsAssignable ( Type service, Type modelService, Type serviceArguments ) : bool

Private Methods

Method Description
AdaptClassServices ( Type closedImplementationType, List closedServices, Type openServices ) : int
AdaptInterfaceServices ( Type closedImplementationType, List closedServices, Type openServices, int index ) : void
CloneParentProperties ( ComponentModel newModel ) : void

Clone some of the parent componentmodel properties to the generic subhandler.

The following properties are copied: The LifestyleType The ComponentModel.Interceptors

EnsureClassMappingInitialized ( Type closedImplementationType, Type>.IDictionary &genericDefinitionToClass ) : void
EnsureInterfaceMappingInitialized ( Type closedImplementationType, Type>.IDictionary &genericDefinitionToInterface ) : void
GetClosedImplementationType ( CreationContext context, bool instanceRequired ) : Type
GetExtendedProperties ( ) : IDictionary
GetGenericArguments ( CreationContext context ) : System.Type[]

Method Details

AdaptServices() protected method

protected AdaptServices ( Type closedImplementationType, Type requestedType ) : System.Type[]
closedImplementationType System.Type
requestedType System.Type
return System.Type[]

BuildSubHandler() protected method

protected BuildSubHandler ( Type closedImplementationType, Type requestedType ) : IHandler
closedImplementationType System.Type
requestedType System.Type
return IHandler

DefaultGenericHandler() public method

public DefaultGenericHandler ( ComponentModel model, IGenericImplementationMatchingStrategy implementationMatchingStrategy, IGenericServiceStrategy serviceStrategy ) : System
model Castle.Core.ComponentModel
implementationMatchingStrategy IGenericImplementationMatchingStrategy
serviceStrategy IGenericServiceStrategy
return System

Dispose() public method

public Dispose ( ) : void
return void

GetSubHandler() protected method

protected GetSubHandler ( Type genericType, Type requestedType ) : IHandler
genericType System.Type
requestedType System.Type
return IHandler

InitDependencies() protected method

protected InitDependencies ( ) : void
return void

ReleaseCore() public method

public ReleaseCore ( Burden burden ) : bool
burden Burden
return bool

Resolve() protected method

protected Resolve ( CreationContext context, bool instanceRequired ) : object
context CreationContext
instanceRequired bool
return object

Supports() public method

public Supports ( Type service ) : bool
service System.Type
return bool

SupportsAssignable() public method

public SupportsAssignable ( Type service ) : bool
service System.Type
return bool

SupportsAssignable() protected method

protected SupportsAssignable ( Type service, Type modelService, Type serviceArguments ) : bool
service System.Type
modelService System.Type
serviceArguments System.Type
return bool