C# Class Castle.Facilities.BatchRegistration.ComponentScanner

Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
AddExclude ( String className ) : void
AddInclude ( String key, String service, String className ) : void
ComponentScanner ( String assemblyName ) : System
Process ( ) : Castle.Facilities.BatchRegistration.ComponentDefinition[]

Private Methods

Method Description
AddToResult ( Assembly assembly, ComponentDefinition def ) : void
AddToResult ( Type type, CastleComponentAttribute attribute ) : void
InferType ( Assembly assembly, String typeName ) : Type

This method always tries to obtain the type from the specified assembly.

InspectTypes ( Assembly assembly ) : void
LoadAssembly ( ) : Assembly
ObtainType ( Assembly assembly, String typeName ) : Type

Obtains the Type by checking if the typeName is possible a full type name, or just an namespace.typename and for the later case, it tries to load the type from the specified assembly

ProcessIncludes ( Assembly assembly ) : void
ProcessType ( Type type ) : void
SortExcludes ( ) : void

Method Details

AddExclude() public method

public AddExclude ( String className ) : void
className String
return void

AddInclude() public method

public AddInclude ( String key, String service, String className ) : void
key String
service String
className String
return void

ComponentScanner() public method

public ComponentScanner ( String assemblyName ) : System
assemblyName String
return System

Process() public method

public Process ( ) : Castle.Facilities.BatchRegistration.ComponentDefinition[]
return Castle.Facilities.BatchRegistration.ComponentDefinition[]