Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionReaderUtils.GenerateObjectName(IConfigurableObjectDefinition, IObjectDefinitionRegistry) Method

Generates the name of the object for a top-level object definition unique within the given object factory.

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

Parameters

definition
The object definition to generate an object name for.
registry
The registry to check for existing names.

Return Value

The generated object name

Exceptions

Exception Type Condition
ObjectDefinitionStoreException if no unique name can be generated for the given object definition

See Also

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