Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RepositoryAttribute Class

Indicates that an annotated class is a "Repository" (or "DAO").

For a list of all members of this type, see RepositoryAttribute Members .


[Visual Basic]
<AttributeUsage(Inherited:=True, ValidOn:=(AttributeTargets.Class Or AttributeTargets.Interface), AllowMultiple:=False)> _
Public Class RepositoryAttribute
    Inherits ComponentAttribute
[AttributeUsage(Inherited=True, ValidOn=(AttributeTargets.Class|AttributeTargets.Interface), AllowMultiple=False)]
public class RepositoryAttribute : ComponentAttribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


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.


Namespace: Spring.Stereotype

Assembly: Spring.Core (in Spring.Core.dll)

See Also

RepositoryAttribute Members | Spring.Stereotype Namespace | ComponentAttribute