Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionConstants.DestroyMethodAttribute Field

Optional attribute for the name of the custom destroy method to invoke on object factory shutdown.

[Visual Basic]
Public Const DestroyMethodAttribute As String = destroy-method
[C#]
public const string DestroyMethodAttribute = destroy-method;

Remarks

Valid destroy methods have either of the following signatures...

Note    Only invoked on singleton objects!

See Also

ObjectDefinitionConstants Class | Spring.Objects.Factory.Xml Namespace