C# Class Spring.Context.Attributes.AssemblyObjectDefinitionScanner

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

Méthodes publiques

Méthode Description
AssemblyObjectDefinitionScanner ( ) : System

Initializes a new instance of the AssemblyObjectDefinitionScanner class.

ScanAndRegisterTypes ( IObjectDefinitionRegistry registry ) : void

Scans the and register types.

Méthodes protégées

Méthode 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

Méthode Description
RegisterDefinitionsForTypes ( IObjectDefinitionRegistry registry, IEnumerable typesToRegister ) : void

Registers the defintions for types.

Method Details

ApplyAssemblyFiltersTo() protected méthode

Applies the assembly filters to the assembly candidates.
protected ApplyAssemblyFiltersTo ( IEnumerable assemblyCandidates ) : IEnumerable
assemblyCandidates IEnumerable The assembly candidates.
Résultat IEnumerable

AssemblyObjectDefinitionScanner() public méthode

Initializes a new instance of the AssemblyObjectDefinitionScanner class.
public AssemblyObjectDefinitionScanner ( ) : System
Résultat System

IsExcludedAssembly() protected méthode

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

IsRequiredConstraintSatisfiedBy() protected méthode

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

ScanAndRegisterTypes() public méthode

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

SetDefaultFilters() protected méthode

Sets the default filters.
protected SetDefaultFilters ( ) : void
Résultat void