Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectFactory.IsSingleton Method

Is this object a singleton?

[Visual Basic]
Public Sub IsSingleton( _
   ByVal name As String _
)
[C#]
bool IsSingleton(
   string name
);

Parameters

name
The name of the object to query.

Return Value

True if the named object is a singleton.

Remarks

That is, will GetObject always return the same object?

Will ask the parent factory if the object cannot be found in this factory instance.

Exceptions

Exception Type Condition
NoSuchObjectDefinitionException If there's no such object definition.

See Also

IObjectFactory Interface | Spring.Objects.Factory Namespace