Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectDefinitionParser.RegisterObjectDefinition Method

Registers the supplied ObjectDefinitionHolder with the supplied IObjectDefinitionRegistry.

[Visual Basic]
Protected Overridable Sub RegisterObjectDefinition( _
   ByVal definition As ObjectDefinitionHolder, _
   ByVal registry As IObjectDefinitionRegistry _
)
[C#]
protected virtual void RegisterObjectDefinition(
   ObjectDefinitionHolder definition,
   IObjectDefinitionRegistry registry
);

Parameters

definition
The object definition to be registered.
registry
The registry that the bean is to be registered with.

Remarks

Subclasses can override this method to control whether or not the supplied ObjectDefinitionHolder is actually even registered, or to register even more objects.

The default implementation registers the supplied ObjectDefinitionHolder with the supplied ObjectDefinitionHolder only if the

IsNested
parameter is
false
, because one typically does not want inner objects to be registered as top level objects.

See Also

AbstractObjectDefinitionParser Class | Spring.Objects.Factory.Xml Namespace