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 .


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


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


Namespace: Spring.Stereotype

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

See Also

ComponentAttribute Members | Spring.Stereotype Namespace | RepositoryAttribute