C# Class Spring.Context.Attributes.AssemblyObjectDefinitionScanner

AssemblyTypeScanner that only accepts types that also meet the requirements of being ObjectDefintions.
Inheritance: Spring.Context.Attributes.RequiredConstraintAssemblyTypeScanner
Exibir arquivo Open project: spring-projects/spring-net-codeconfig Class Usage Examples

Public Methods

Method Description
AssemblyObjectDefinitionScanner ( ) : System

Initializes a new instance of the AssemblyObjectDefinitionScanner class.

ScanAndRegisterTypes ( IObjectDefinitionRegistry registry ) : void

Scans the and register types.

Protected Methods

Method Description
ApplyAssemblyFiltersTo ( IEnumerable assemblyCandidates ) : IEnumerable

Applies the assembly filters to the assembly candidates.

IsExcludedAssembly ( Assembly candidate ) : bool

Determines whether the specified candidate is and excluded assembly.

IsRequiredConstraintSatisfiedBy ( Type type ) : bool

Determines whether the required constraint is satisfied by the specified type.

SetDefaultFilters ( ) : void

Sets the default filters.

Private Methods

Method Description
RegisterDefinitionsForTypes ( IObjectDefinitionRegistry registry, IEnumerable typesToRegister ) : void

Registers the defintions for types.

Method Details

ApplyAssemblyFiltersTo() protected method

Applies the assembly filters to the assembly candidates.
protected ApplyAssemblyFiltersTo ( IEnumerable assemblyCandidates ) : IEnumerable
assemblyCandidates IEnumerable The assembly candidates.
return IEnumerable

AssemblyObjectDefinitionScanner() public method

Initializes a new instance of the AssemblyObjectDefinitionScanner class.
public AssemblyObjectDefinitionScanner ( ) : System
return System

IsExcludedAssembly() protected method

Determines whether the specified candidate is and excluded assembly.
protected IsExcludedAssembly ( Assembly candidate ) : bool
candidate System.Reflection.Assembly The candidate.
return bool

IsRequiredConstraintSatisfiedBy() protected method

Determines whether the required constraint is satisfied by the specified type.
protected IsRequiredConstraintSatisfiedBy ( Type type ) : bool
type System.Type The type.
return bool

ScanAndRegisterTypes() public method

Scans the and register types.
public ScanAndRegisterTypes ( IObjectDefinitionRegistry registry ) : void
registry IObjectDefinitionRegistry The registry within which to register the types.
return void

SetDefaultFilters() protected method

Sets the default filters.
protected SetDefaultFilters ( ) : void
return void