Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.CheckMergedObjectDefinition Method

Check the supplied merged object definition for any possible validation errors.

[Visual Basic]
Protected Sub CheckMergedObjectDefinition( _
   ByVal mergedObjectDefinition As RootObjectDefinition, _
   ByVal objectName As String, _
   ByVal requiredType As Type, _
   ParamArray arguments As Object _
)
[C#]
protected void CheckMergedObjectDefinition(
   RootObjectDefinition mergedObjectDefinition,
   string objectName,
   Type requiredType,
   params object[] arguments
);

Parameters

mergedObjectDefinition
The object definition to be checked for validation errors.
objectName
The name of the object associated with the supplied object definition.
requiredType
The Type the object may match. Can be an interface or superclass of the actual class. For example, if the value is the Object class, this method will succeed whatever the class of the returned instance.
arguments
The arguments to use if creating a prototype using explicit arguments to a factory method. If there is no factory method and the supplied arguments array is not , then match the argument values by type and call the object's constructor.

Exceptions

Exception Type Condition
ObjectsException In the case of object validation errors.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace