Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

FieldRetrievingFactoryObject.ObjectName Property

Set the name of the object in the object factory that created this object.

[Visual Basic]
Public NotOverridable WriteOnly Property ObjectName() As String _
    Implements IObjectNameAware.ObjectName

   Public Set
   End Set
End Property
[C#]
public string ObjectName { public set; }

Property Value

The name of the object in the factory.

Implements

IObjectNameAware.ObjectName

Remarks

In the context of the FieldRetrievingFactoryObject class, the ObjectName value will be interepreted as the value of the StaticField property if no value has been explicitly assigned to the StaticField property. This allows for concise object definitions with just an id or name; see the class documentation for FieldRetrievingFactoryObject for an example of this style of usage.

See Also

FieldRetrievingFactoryObject Class | Spring.Objects.Factory.Config Namespace