Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PropertiesObjectDefinitionReader.RegisterObjectDefinition Method

Get all property values, given a prefix (which will be stripped) and add the object they define to the factory with the given name

[Visual Basic]
Protected Sub RegisterObjectDefinition( _
   ByVal name As String, _
   ByVal id As IDictionary, _
   ByVal prefix As String, _
   ByVal resourceDescription As String _
)
[C#]
protected void RegisterObjectDefinition(
   string name,
   IDictionary id,
   string prefix,
   string resourceDescription
);

Parameters

name
The name of the object to define.
id
The IDictionary containing string pairs.
prefix
The prefix of each entry, which will be stripped.
resourceDescription
The description of the resource that the IDictionary came from (for logging purposes).

Exceptions

Exception Type Condition
ObjectsException In case of loading or parsing errors.

See Also

PropertiesObjectDefinitionReader Class | Spring.Objects.Factory.Support Namespace