Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IConfigurableListableObjectFactory.RegisterObjectDefinition Method

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

[Visual Basic]
Public Sub RegisterObjectDefinition( _
   ByVal name As String, _
   ByVal definition As IObjectDefinition _
)
[C#]
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.

Remarks

Must support RootObjectDefinition and ChildObjectDefinition.

Exceptions

Exception Type Condition
ObjectsException If the object definition is invalid.

See Also

IConfigurableListableObjectFactory Interface | Spring.Objects.Factory.Config Namespace