Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractApplicationContext.RegisterObjectDefinition Method

Register a new object definition with this registry. Must support RootObjectDefinition and ChildObjectDefinition.

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

Parameters

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

Implements

IObjectDefinitionRegistry.RegisterObjectDefinition

Remarks

Must support RootObjectDefinition and ChildObjectDefinition.

Exceptions

Exception Type Condition
ObjectsException If the object definition is invalid.

See Also

AbstractApplicationContext Class | Spring.Context.Support Namespace