C# Class Castle.MicroKernel.SubSystems.Naming.DefaultNamingSubSystem

Inheritance: AbstractSubSystem, INamingSubSystem
Show file Open project: 7digital/Castle.Windsor

Protected Properties

Property Type Description
key2Handler IHandler>.IDictionary
service2Handler IHandler>.IDictionary

Public Methods

Method Description
AddHandlerSelector ( IHandlerSelector selector ) : void
Contains ( String key ) : bool
Contains ( Type service ) : bool
GetAssignableHandlers ( Type service ) : IHandler[]
GetHandler ( String key ) : IHandler
GetHandler ( String key, Type service ) : IHandler
GetHandler ( Type service ) : IHandler
GetHandlers ( ) : IHandler[]
GetHandlers ( Type service ) : IHandler[]
GetKey2Handler ( ) : IHandler>.IDictionary
Register ( String key, IHandler handler ) : void

Protected Methods

Method Description
GetSelectorsOpinion ( string key, Type type ) : IHandler
this ( String key ) : IHandler

Private Methods

Method Description
InvalidateCache ( ) : void
IsAssignable ( Type thisOne, Type fromThisOne ) : bool

Method Details

AddHandlerSelector() public method

public AddHandlerSelector ( IHandlerSelector selector ) : void
selector IHandlerSelector
return void

Contains() public method

public Contains ( String key ) : bool
key String
return bool

Contains() public method

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

GetAssignableHandlers() public method

public GetAssignableHandlers ( Type service ) : IHandler[]
service System.Type
return IHandler[]

GetHandler() public method

public GetHandler ( String key ) : IHandler
key String
return IHandler

GetHandler() public method

public GetHandler ( String key, Type service ) : IHandler
key String
service System.Type
return IHandler

GetHandler() public method

public GetHandler ( Type service ) : IHandler
service System.Type
return IHandler

GetHandlers() public method

public GetHandlers ( ) : IHandler[]
return IHandler[]

GetHandlers() public method

public GetHandlers ( Type service ) : IHandler[]
service System.Type
return IHandler[]

GetKey2Handler() public method

public GetKey2Handler ( ) : IHandler>.IDictionary
return IHandler>.IDictionary

GetSelectorsOpinion() protected method

protected GetSelectorsOpinion ( string key, Type type ) : IHandler
key string
type System.Type
return IHandler

Register() public method

public Register ( String key, IHandler handler ) : void
key String
handler IHandler
return void

this() protected method

protected this ( String key ) : IHandler
key String
return IHandler

Property Details

key2Handler protected property

Map(String, IHandler) to map component keys to IHandler Items in this dictionary are sorted in insertion order.
protected IDictionary key2Handler
return IHandler>.IDictionary

service2Handler protected property

Map(Type, IHandler) to map a service to IHandler. If there is more than a single service of the type, only the first registered services is stored in this dictionary. It serve as a fast lookup for the common case of having a single handler for a type.
protected IDictionary service2Handler
return IHandler>.IDictionary