Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ServiceAttribute Class

Indicates that an annotated class is a "Service" (e.g. a business service facade).

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


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


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

ServiceAttribute Members | Spring.Stereotype Namespace