Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultListableObjectFactory.RegisterObjectDefinition Method

Register a new object definition with this registry.

[Visual Basic]
Public Overrides Sub RegisterObjectDefinition( _
   ByVal name As String, _
   ByVal objectDefinition As IObjectDefinition _
) _
    Implements IObjectDefinitionRegistry.RegisterObjectDefinition
[C#]
public override void RegisterObjectDefinition(
   string name,
   IObjectDefinition objectDefinition
);

Parameters

name
The name of the object instance to register.
objectDefinition
The definition of the object instance to register.

Implements

IObjectDefinitionRegistry.RegisterObjectDefinition

Exceptions

Exception Type Condition
ObjectsException If the object definition is invalid.

See Also

DefaultListableObjectFactory Class | Spring.Objects.Factory.Support Namespace | RegisterObjectDefinition