C# Class Spring.Stereotype.RepositoryAttribute

Indicates that an annotated class is a "Repository" (or "DAO").
A class with this attribute is eligible for Spring DataAccessException translation. A class with the Repository attribute is also clarified as to its role in the overall application architecture for the purpose of tools, aspects, etc.

This attribute also serves as a specialization of the ComponentAttribute, allowing implementation classes to be autodetected in future releases through assembly scanning.

Inheritance: Spring.Stereotype.ComponentAttribute
显示文件 Open project: spring-projects/spring-net

Public Methods

Method Description
RepositoryAttribute ( )

Initializes a new instance of the RepositoryAttribute class.

RepositoryAttribute ( string name )

Initializes a new instance of the RepositoryAttribute class.

Method Details

RepositoryAttribute() public method

Initializes a new instance of the RepositoryAttribute class.
public RepositoryAttribute ( )

RepositoryAttribute() public method

Initializes a new instance of the RepositoryAttribute class.
public RepositoryAttribute ( string name )
name string The name of the repository.