Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.RegisterObjectDefinition Method

Register a new object definition with this registry.

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

Exceptions

Exception Type Condition
ObjectsException If the object definition is invalid.

See Also

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