Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultObjectDefinitionFactory.CreateObjectDefinition Method

Factory style method for getting concrete IConfigurableObjectDefinition instances.

[Visual Basic]
Public Overridable Sub CreateObjectDefinition( _
   ByVal typeName As String, _
   ByVal parent As String, _
   ByVal domain As AppDomain _
) _
    Implements IObjectDefinitionFactory.CreateObjectDefinition
[C#]
public virtual AbstractObjectDefinition CreateObjectDefinition(
   string typeName,
   string parent,
   AppDomain domain
);

Parameters

typeName
The Type of the defined object.
parent
The name of the parent object definition (if any).
domain
The AppDomain against which any class names will be resolved into Type instances.

Return Value

An IConfigurableObjectDefinition instance.

Implements

IObjectDefinitionFactory.CreateObjectDefinition

Remarks

If no parent is specified, a RootObjectDefinition is created, otherwise a ChildObjectDefinition.

See Also

DefaultObjectDefinitionFactory Class | Spring.Objects.Factory.Support Namespace