C# Class Castle.Facilities.LightweighFactory.LightweightFactory

Inheritance: ILazyComponentLoader
Show file Open project: nhsevidence/Snooze Class Usage Examples

Public Methods

Method Description
LightweightFactory ( IKernel kernel, IDelegateBuilder delegateBuiler ) : System
Load ( string key, Type service ) : IRegistration
Load ( string key, Type service, IDictionary arguments ) : IRegistration

Protected Methods

Method Description
ExtractServiceName ( string key ) : string
GetHandlerToBeResolvedByDelegate ( MethodInfo invoke, string serviceName ) : IHandler
GetInvokeMethod ( Type @delegate ) : MethodInfo
HasReturn ( MethodInfo invoke ) : bool
ShouldLoad ( string key, Type service ) : bool

Method Details

ExtractServiceName() protected method

protected ExtractServiceName ( string key ) : string
key string
return string

GetHandlerToBeResolvedByDelegate() protected method

protected GetHandlerToBeResolvedByDelegate ( MethodInfo invoke, string serviceName ) : IHandler
invoke System.Reflection.MethodInfo
serviceName string
return IHandler

GetInvokeMethod() protected method

protected GetInvokeMethod ( Type @delegate ) : MethodInfo
@delegate System.Type
return System.Reflection.MethodInfo

HasReturn() protected method

protected HasReturn ( MethodInfo invoke ) : bool
invoke System.Reflection.MethodInfo
return bool

LightweightFactory() public method

public LightweightFactory ( IKernel kernel, IDelegateBuilder delegateBuiler ) : System
kernel IKernel
delegateBuiler IDelegateBuilder
return System

Load() public method

public Load ( string key, Type service ) : IRegistration
key string
service System.Type
return IRegistration

Load() public method

public Load ( string key, Type service, IDictionary arguments ) : IRegistration
key string
service System.Type
arguments IDictionary
return IRegistration

ShouldLoad() protected method

protected ShouldLoad ( string key, Type service ) : bool
key string
service System.Type
return bool