Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PropertiesObjectDefinitionReader.RegisterObjectDefinitions(IDictionary, String) Method

Register object definitions contained in a IDictionary.

[Visual Basic]
Public Overloads Sub RegisterObjectDefinitions( _
   ByVal id As IDictionary, _
   ByVal prefix As String _
)
[C#]
public int RegisterObjectDefinitions(
   IDictionary id,
   string prefix
);

Parameters

id
IDictionary name -> property (String or Object). Property values will be strings if coming from a Properties file etc. Property names (keys) must be strings. Type keys must be strings.
prefix
The match or filter within the keys in the map: e.g. 'objects.'

Return Value

The number of object definitions found.

Remarks

Ignores ineligible properties.

Exceptions

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

See Also

PropertiesObjectDefinitionReader Class | Spring.Objects.Factory.Support Namespace | PropertiesObjectDefinitionReader.RegisterObjectDefinitions Overload List