Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory Members

AbstractObjectFactory overview

Public Instance Properties

IgnoredDependencyTypes Gets the set of classes that will be ignored for autowiring.
IsCaseSensitive Returns, whether this factory treats object names case sensitive or not.
Item Return an instance (possibly shared or independent) of the given object name.
ObjectPostProcessorCount Returns the current number of registered IObjectPostProcessors.
ObjectPostProcessors Gets the ISet of IObjectPostProcessors that will be applied to objects created by this factory.
ParentObjectFactory The parent object factory, or a null reference (Nothing in Visual Basic) if there is none.
SingletonCount Gets the number of singleton beans registered in this registry.
SingletonNames Gets the names of singleton objects registered in this registry.

Public Instance Methods

AddObjectPostProcessor Add a new IObjectPostProcessor that will get applied to objects created by this factory.
ApplyObjectPropertyValues Apply the property values of the object definition with the supplied name to the supplied instance.
ConfigureObjectOverloaded. Injects dependencies into the supplied target instance using the named object definition.
ContainsLocalObject Determines whether the local object factory contains a bean of the given name, ignoring object defined in ancestor contexts. This is an alternative to
ContainsObject
, ignoring an object of the given name from an ancestor object factory.
ContainsObject Does this object factory or one of its parent factories contain an object with the given name?
ContainsObjectDefinition Does this object factory contain an object definition with the supplied name?
ContainsSingleton Does this object factory contains a singleton instance with the supplied name?
CreateObject Return an unconfigured(!) instance (possibly shared or independent) of the given object name.
Dispose Destroy all cached singletons in this factory.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetAliases Return the aliases for the given object name, if defined.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetMergedObjectDefinitionOverloaded. Return a RootObjectDefinition, even by traversing parent if the parameter is a child definition.
GetObjectOverloaded. Return an instance (possibly shared or independent) of the given object name.
GetObjectDefinitionOverloaded. Return the registered IObjectDefinition for the given object, allowing access to its property values and constructor argument values.
GetSingleton Tries to find a cached object for the specified name.
GetSingletonCount Returns the number of objects in the singleton cache.
GetSingletonNamesOverloaded. Return the names of objects in the singleton cache that match the given object type (including subclasses).
GetTypeOverloaded. Determines the Type of the object with the supplied name.
GetType (inherited from Object)Overloaded. Gets the Type of the current instance.
IgnoreDependencyType Ignore the given dependency type for autowiring
IsCurrentlyInCreation Determines whether the specified object name is currently in creation..
IsObjectNameInUse Determines whether the given object name is already in use within this factory, i.e. whether there is a local object or alias registered under this name or an inner object created with this name.
IsPrototype Determines whether the specified object name is prototype. That is, will GetObject always return independent instances?
IsSingleton Is this object a singleton?
IsTypeMatch Determines whether the object with the given name matches the specified type.
RegisterAlias Given an object name, create an alias.
RegisterCustomConverter Register the given custom TypeConverter for all properties of the given Type.
RegisterObjectDefinition Register a new object definition with this registry.
RegisterSingleton Register the given existing object as singleton in the object factory, under the given object name.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

AbstractObjectFactory Overloaded. Initializes a new instance of the AbstractObjectFactory class.

Protected Instance Properties

DisposableInnerObjects Set that holds all inner objects created by this factory that implement the IDisposable interface, to be destroyed on call to Dispose.
HasDestructionAwareBeanPostProcessors Returns, whether this object factory instance contains IDestructionAwareObjectPostProcessor objects.
HasInstantiationAwareBeanPostProcessors Returns, whether this object factory instance contains IInstantiationAwareObjectPostProcessor objects.
TemporarySingletonPlaceHolder Gets the temporary object that is placed into the singleton cache during object resolution.

Protected Instance Methods

AddSingleton Adds the supplied singleton (object) to this factory's singleton cache.
CheckMergedObjectDefinition Check the supplied merged object definition for any possible validation errors.
CreateAndCacheSingletonInstance Creates a singleton instance for the specified object name and definition.
CreateRootObjectDefinition Creates the root object definition.
DestroyObject Destroy the target object.
DestroySingleton Destroys the named singleton object.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetFactoryObject Convenience method to pull an IFactoryObject from this factory.
GetMergedObjectDefinitionOverloaded. Return a RootObjectDefinition, even by traversing parent if the parameter is a child definition.
GetObjectForInstanceOverloaded. Get the object for the given object instance, either the object instance itself or its created object in case of an IFactoryObject.
GetObjectInternal Return an instance (possibly shared or independent) of the given object name, optionally injecting dependencies.
GetTypeForFactoryMethod Determines the Type of the object defined by the supplied object definition.
GetTypeForFactoryObjectOverloaded. Gets the type for the given FactoryObject.
InstantiateObject Create an object instance for the given object definition.
IsAlias Determines whether the specified name is defined as an alias as opposed to the name of an actual object definition.
IsFactoryDereference Is the supplied name a factory object dereference?
IsFactoryObject Is the object (definition) with the supplied name an IFactoryObject?
IsObjectTypeMatch Determines whether the type of the given object definition matches the specified target type.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OriginalObjectName Ensures, that the given name is prefixed with FactoryObjectPrefix if it incidentially already starts with this prefix. This avoids troubles when dereferencing the object name during TransformedObjectName
PostProcessObjectFromFactoryObject Post-process the given object that has been obtained from the FactoryObject. The resulting object will be exposed for object references.
PredictObjectType Predict the eventual object type (of the processed object instance) for the specified object.
RemoveSingleton Remove the object identified by the supplied name from this factory's singleton cache.
ResolveObjectType Resolves the type of the object for the specified object definition resolving an object type name to a Type (if necessary) and storing the resolved Type in the object definition for further use.
TransformedObjectName Return the object name, stripping out the factory dereference prefix if necessary, and resolving aliases to canonical names.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace