Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionReaderUtils.GenerateObjectName(IConfigurableObjectDefinition, IObjectDefinitionRegistry, Boolean) Method

Generates an object definition name for the supplied objectDefinition that is guaranteed to be unique within the scope of the supplied registry.

[Visual Basic]
Public Overloads Shared Sub GenerateObjectName( _
   ByVal objectDefinition As IConfigurableObjectDefinition, _
   ByVal registry As IObjectDefinitionRegistry, _
   ByVal isInnerObject As Boolean _
)
[C#]
public static string GenerateObjectName(
   IConfigurableObjectDefinition objectDefinition,
   IObjectDefinitionRegistry registry,
   bool isInnerObject
);

Parameters

objectDefinition
The IObjectDefinition that requires a generated name.
registry
The IObjectDefinitionRegistry that the supplied objectDefinition is to be registered with (needed so that the uniqueness of any generated name can be guaranteed).
isInnerObject
if set to true if the given object definition will be registed as an inner object or as a top level objener objects verses top level objects.

Return Value

An object definition name for the supplied objectDefinition that is guaranteed to be unique within the scope of the supplied registry and never .

Exceptions

Exception Type Condition
ArgumentNullException If either of the objectDefinition or registry arguments is a null reference (Nothing in Visual Basic).
ObjectDefinitionStoreException If a unique name cannot be generated.

See Also

ObjectDefinitionReaderUtils Class | Spring.Objects.Factory.Support Namespace | ObjectDefinitionReaderUtils.GenerateObjectName Overload List