Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ComponentAttribute Class

Indicates that an annotated class is a "component". Such classes are considered as candidates for future features such as auto-detection when using attribute-based configuration and assembly scanning.

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

System.Object
   Attribute
      ComponentAttribute
         RepositoryAttribute
         ServiceAttribute

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

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

Other class-level annotations may be considered as identifying a component as well, typically a special kind of component: e.g. the Repository attribute.

Requirements

Namespace: Spring.Stereotype

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

See Also

ComponentAttribute Members | Spring.Stereotype Namespace | RepositoryAttribute