Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ChildObjectDefinition Class

Object definition for definitions that inherit settings from their parent (object definition).

For a list of all members of this type, see ChildObjectDefinition Members .

System.Object
   AbstractObjectDefinition
      ChildObjectDefinition
         ChildWebObjectDefinition

[Visual Basic]
<Serializable> _
Public Class ChildObjectDefinition
    Inherits AbstractObjectDefinition
[C#]
[Serializable]
public class ChildObjectDefinition : AbstractObjectDefinition

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Will use the ObjectType of the parent object definition if none is specified, but can also override it. In the latter case, the child's ObjectType must be compatible with the parent, i.e. accept the parent's property values and constructor argument values (if any).

A ChildObjectDefinition will inherit all of the ConstructorArgumentValues, IPropertyValues, and EventValues from it's parent object definition, with the option to add new values. If the InitMethodName, DestroyMethodName, and / or static (Shared in Visual Basic)FactoryMethodName properties are specified, they will override the corresponding parent settings.

The remaining settings will always be taken from the child definition: DependsOn, AutowireMode, DependencyCheck, IsSingleton, and IsLazyInit

Requirements

Namespace: Spring.Objects.Factory.Support

Assembly: Spring.Core (in Spring.Core.dll)

See Also

ChildObjectDefinition Members | Spring.Objects.Factory.Support Namespace | RootObjectDefinition