Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultListableObjectFactory.GetObjectDefinition(String, Boolean) Method

Return the registered IObjectDefinition for the given object, allowing access to its property values and constructor argument values.

[Visual Basic]
Public Overrides Overloads Sub GetObjectDefinition( _
   ByVal name As String, _
   ByVal includeAncestors As Boolean _
) _
    Implements IConfigurableListableObjectFactory.GetObjectDefinition
[C#]
public override IObjectDefinition GetObjectDefinition(
   string name,
   bool includeAncestors
);

Parameters

name
The name of the object.
includeAncestors
Whether to search parent object factories.

Return Value

The registered IObjectDefinition, or null, if specified object definitions does not exist.

Implements

IConfigurableListableObjectFactory.GetObjectDefinition

Exceptions

Exception Type Condition
ArgumentException If name is null or empty string.

See Also

DefaultListableObjectFactory Class | Spring.Objects.Factory.Support Namespace | DefaultListableObjectFactory.GetObjectDefinition Overload List | GetObjectDefinition