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 .

System.Object
   Attribute
      ComponentAttribute
         RepositoryAttribute

[Visual Basic]
<AttributeUsage(Inherited:=True, ValidOn:=(AttributeTargets.Class Or AttributeTargets.Interface), AllowMultiple:=False)> _
Public Class RepositoryAttribute
    Inherits ComponentAttribute
[C#]
[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.

Remarks

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.

Requirements

Namespace: Spring.Stereotype

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

See Also

RepositoryAttribute Members | Spring.Stereotype Namespace | ComponentAttribute