Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultListableObjectFactory.AllowObjectDefinitionOverriding Property

Should object definitions registered under the same name as an existing object definition be allowed?

[Visual Basic]
Public Property AllowObjectDefinitionOverriding() As Boolean
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public bool AllowObjectDefinitionOverriding { public get; public set; }

Property Value

true is the registration of an object definition under the same name as an existing object definition is allowed.

Remarks

If true, then the new object definition will replace (override) the existing object definition. If false, an exception will be thrown when an attempt is made to register an object definition under the same name as an already existing object definition.

The default is true.

See Also

DefaultListableObjectFactory Class | Spring.Objects.Factory.Support Namespace