Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

XmlObjectFactory Members

XmlObjectFactory overview

Public Instance Constructors

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

Public Instance Properties

AllowObjectDefinitionOverriding (inherited from DefaultListableObjectFactory) Should object definitions registered under the same name as an existing object definition be allowed?
AutowireCandidateResolver (inherited from DefaultListableObjectFactory) Get or set custom autowire candidate resolver for this IObjectFactory to use when deciding whether a bean definition should be considered as a candidate for autowiring. Never
null
IgnoredDependencyTypes (inherited from AbstractObjectFactory) Gets the set of classes that will be ignored for autowiring.
IsCaseSensitive (inherited from AbstractObjectFactory) Returns, whether this factory treats object names case sensitive or not.
Item (inherited from AbstractObjectFactory) Return an instance (possibly shared or independent) of the given object name.
ObjectDefinitionCount (inherited from DefaultListableObjectFactory) Return the number of objects defined in this registry.
ObjectPostProcessorCount (inherited from AbstractObjectFactory) Returns the current number of registered IObjectPostProcessors.
ObjectPostProcessors (inherited from AbstractObjectFactory) Gets the ISet of IObjectPostProcessors that will be applied to objects created by this factory.
ParentObjectFactory (inherited from AbstractObjectFactory) The parent object factory, or a null reference (Nothing in Visual Basic) if there is none.
SingletonCount (inherited from AbstractObjectFactory) Gets the number of singleton beans registered in this registry.
SingletonNames (inherited from AbstractObjectFactory) Gets the names of singleton objects registered in this registry.

Public Instance Methods

AddObjectPostProcessor (inherited from AbstractObjectFactory) Add a new IObjectPostProcessor that will get applied to objects created by this factory.
ApplyObjectPostProcessorsAfterInitialization (inherited from AbstractAutowireCapableObjectFactory) Apply IObjectPostProcessors to the given existing object instance, invoking their PostProcessAfterInitialization methods.
ApplyObjectPostProcessorsBeforeInitialization (inherited from AbstractAutowireCapableObjectFactory) Apply IObjectPostProcessors to the given existing object instance, invoking their PostProcessBeforeInitialization methods.
ApplyObjectPropertyValues (inherited from AbstractAutowireCapableObjectFactory) Apply the property values of the object definition with the supplied name to the supplied instance.
Autowire (inherited from AbstractAutowireCapableObjectFactory) Create a new object instance of the given class with the specified autowire strategy.
AutowireObjectProperties (inherited from AbstractAutowireCapableObjectFactory) Autowire the object properties of the given object instance by name or Type.
ConfigureObject (inherited from AbstractAutowireCapableObjectFactory)Overloaded. Injects dependencies into the supplied target instance using the named object definition.
ContainsLocalObject (inherited from AbstractObjectFactory) 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 (inherited from AbstractObjectFactory) Does this object factory or one of its parent factories contain an object with the given name?
ContainsObjectDefinition (inherited from DefaultListableObjectFactory) Check if this registry contains a object definition with the given name.
ContainsSingleton (inherited from AbstractObjectFactory) Does this object factory contains a singleton instance with the supplied name?
CreateObject (inherited from AbstractObjectFactory) Return an unconfigured(!) instance (possibly shared or independent) of the given object name.
Dispose (inherited from AbstractAutowireCapableObjectFactory) Destroy all cached singletons in this factory.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetAliases (inherited from AbstractObjectFactory) 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.
GetMergedObjectDefinition (inherited from AbstractObjectFactory)Overloaded. Return a RootObjectDefinition, even by traversing parent if the parameter is a child definition.
GetObject (inherited from AbstractObjectFactory)Overloaded. Return an instance (possibly shared or independent) of the given object name.
GetObjectDefinition (inherited from DefaultListableObjectFactory)Overloaded. Return the registered IObjectDefinition for the given object, allowing access to its property values and constructor argument values.
GetObjectDefinitionNames (inherited from DefaultListableObjectFactory)Overloaded. Return the names of all objects defined in this factory.
GetObjectNamesForType (inherited from DefaultListableObjectFactory)Overloaded. Return the names of objects matching the given Type (including subclasses), judging from the object definitions.
GetObjectsOfType (inherited from DefaultListableObjectFactory)Overloaded. Return the object instances that match the given object Type (including subclasses), judging from either object definitions or the value of ObjectType in the case of IFactoryObjects.
GetSingleton (inherited from AbstractObjectFactory) Tries to find a cached object for the specified name.
GetSingletonCount (inherited from AbstractObjectFactory) Returns the number of objects in the singleton cache.
GetSingletonNames (inherited from AbstractObjectFactory)Overloaded. Return the names of objects in the singleton cache that match the given object type (including subclasses).
GetType (inherited from AbstractObjectFactory)Overloaded. Determines the Type of the object with the supplied name.
GetType (inherited from Object)Overloaded. Gets the Type of the current instance.
IgnoreDependencyInterface (inherited from AbstractAutowireCapableObjectFactory) Ignore the given dependency type for autowiring
IgnoreDependencyType (inherited from AbstractObjectFactory) Ignore the given dependency type for autowiring
IsAutowireCandidate (inherited from DefaultListableObjectFactory) Determines whether the specified object qualifies as an autowire candidate, to be injected into other beans which declare a dependency of matching type. This method checks ancestor factories as well.
IsCurrentlyInCreation (inherited from AbstractObjectFactory) Determines whether the specified object name is currently in creation..
IsObjectNameInUse (inherited from AbstractObjectFactory) 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 (inherited from AbstractObjectFactory) Determines whether the specified object name is prototype. That is, will GetObject always return independent instances?
IsSingleton (inherited from AbstractObjectFactory) Is this object a singleton?
IsTypeMatch (inherited from AbstractObjectFactory) Determines whether the object with the given name matches the specified type.
PreInstantiateSingletons (inherited from DefaultListableObjectFactory) Ensure that all non-lazy-init singletons are instantiated, also considering IFactoryObjects.
RegisterAlias (inherited from AbstractObjectFactory) Given an object name, create an alias.
RegisterCustomConverter (inherited from AbstractObjectFactory) Register the given custom TypeConverter for all properties of the given Type.
RegisterObjectDefinition (inherited from DefaultListableObjectFactory) Register a new object definition with this registry.
RegisterResolvableDependency (inherited from DefaultListableObjectFactory) Register a special dependency type with corresponding autowired value.
RegisterSingleton (inherited from AbstractObjectFactory) Register the given existing object as singleton in the object factory, under the given object name.
ResolveDependency (inherited from DefaultListableObjectFactory) Resolve the specified dependency against the objects defined in this factory.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Properties

DisposableInnerObjects (inherited from AbstractObjectFactory) Set that holds all inner objects created by this factory that implement the IDisposable interface, to be destroyed on call to Dispose.
HasDestructionAwareBeanPostProcessors (inherited from AbstractObjectFactory) Returns, whether this object factory instance contains IDestructionAwareObjectPostProcessor objects.
HasInstantiationAwareBeanPostProcessors (inherited from AbstractObjectFactory) Returns, whether this object factory instance contains IInstantiationAwareObjectPostProcessor objects.
InstantiationStrategy (inherited from AbstractAutowireCapableObjectFactory) The IInstantiationStrategy implementation to be used to instantiate managed objects.
ObjectDefinitionReader Gets object definition reader to use.
TemporarySingletonPlaceHolder (inherited from AbstractObjectFactory) Gets the temporary object that is placed into the singleton cache during object resolution.

Protected Instance Methods

AddEagerlyCachedSingleton (inherited from AbstractAutowireCapableObjectFactory) Add the created, but yet unpopulated singleton to the singleton cache to be able to resolve circular references
AddSingleton (inherited from AbstractObjectFactory) Adds the supplied singleton (object) to this factory's singleton cache.
ApplyObjectPostProcessorsBeforeInstantiation (inherited from AbstractAutowireCapableObjectFactory) Apply any IInstantiationAwareObjectPostProcessors.
ApplyPropertyValues (inherited from AbstractAutowireCapableObjectFactory) Apply the given property values, resolving any runtime references to other objects in this object factory.
AutowireByName (inherited from AbstractAutowireCapableObjectFactory) Fills in any missing property values with references to other objects in this factory if autowire is set to ByName.
AutowireByType (inherited from AbstractAutowireCapableObjectFactory) Defines "autowire by type" (object properties by type) behavior.
AutowireConstructor (inherited from AbstractAutowireCapableObjectFactory) "autowire constructor" (with constructor arguments by type) behaviour.
CheckMergedObjectDefinition (inherited from AbstractObjectFactory) Check the supplied merged object definition for any possible validation errors.
ConfigureObject (inherited from AbstractAutowireCapableObjectFactory)Overloaded. Configures object instance by injecting dependencies, satisfying Spring lifecycle interfaces and applying object post-processors.
CreateAndCacheSingletonInstance (inherited from AbstractObjectFactory) Creates a singleton instance for the specified object name and definition.
CreateObjectInstance (inherited from AbstractAutowireCapableObjectFactory) Creates an IObjectWrapper instance from the RootObjectDefinition passed in objectDefinition using constructor arguments
CreateRootObjectDefinition (inherited from AbstractObjectFactory) Creates the root object definition.
CreateValueResolver (inherited from AbstractAutowireCapableObjectFactory) Create the value resolver strategy to use for resolving raw property values
DependencyCheck (inherited from AbstractAutowireCapableObjectFactory) Perform a dependency check that all properties exposed have been set, if desired.
DestroyObject (inherited from AbstractAutowireCapableObjectFactory) Destroy the target object.
DestroySingleton (inherited from AbstractObjectFactory) Destroys the named singleton object.
DetermineConstructorsFromObjectPostProcessors (inherited from AbstractAutowireCapableObjectFactory) Determines candidate constructors to use for the given bean, checking all registered SmartInstantiationAwareObjectPostProcessor
DoGetObjectNamesForType (inherited from DefaultListableObjectFactory) Return the object instances that match the given object Type (including subclasses).
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.
FindMatchingObjects (inherited from DefaultListableObjectFactory) Find object instances that match the requiredType.
GetDependingObjectNames (inherited from DefaultListableObjectFactory) Return the names of the objects that depend on the given object.
GetFactoryObject (inherited from AbstractObjectFactory) Convenience method to pull an IFactoryObject from this factory.
GetMergedObjectDefinition (inherited from AbstractObjectFactory)Overloaded. Return a RootObjectDefinition, even by traversing parent if the parameter is a child definition.
GetObjectForInstance (inherited from AbstractObjectFactory)Overloaded. Get the object for the given object instance, either the object instance itself or its created object in case of an IFactoryObject.
GetObjectInternal (inherited from AbstractObjectFactory) Return an instance (possibly shared or independent) of the given object name, optionally injecting dependencies.
GetTypeForFactoryMethod (inherited from AbstractAutowireCapableObjectFactory) Determines the Type of the object defined by the supplied object definition.
GetTypeForFactoryObject (inherited from AbstractObjectFactory)Overloaded. Gets the type for the given FactoryObject.
InstantiateObject (inherited from AbstractAutowireCapableObjectFactory)Overloaded. Create an object instance for the given object definition.
InstantiateUsingFactoryMethod (inherited from AbstractAutowireCapableObjectFactory) Instantiate an object instance using a named factory method.
InvokeCustomDestroyMethod (inherited from AbstractAutowireCapableObjectFactory) Invoke the specified custom destroy method on the given object.
InvokeInitMethods (inherited from AbstractAutowireCapableObjectFactory) Give an object a chance to react now all its properties are set, and a chance to know about its owning object factory (this object).
IsAlias (inherited from AbstractObjectFactory) Determines whether the specified name is defined as an alias as opposed to the name of an actual object definition.
IsFactoryDereference (inherited from AbstractObjectFactory) Is the supplied name a factory object dereference?
IsFactoryObject (inherited from DefaultListableObjectFactory)Overloaded. Check whether the given bean is defined as a IFactoryObject.
IsFactoryObject (inherited from AbstractObjectFactory)Overloaded. Is the object (definition) with the supplied name an IFactoryObject?
IsObjectTypeMatch (inherited from AbstractObjectFactory) 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 (inherited from AbstractObjectFactory) 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
PopulateObject (inherited from AbstractAutowireCapableObjectFactory) Populate the object instance in the given IObjectWrapper with the property values from the object definition.
PostProcessObjectFromFactoryObject (inherited from AbstractAutowireCapableObjectFactory) Applies the
PostProcessAfterInitialization
callback of all registered IObjectPostProcessors, giving them a chance to post-process the object obtained from IFactoryObjects (for example, to auto-proxy them)
PredictObjectType (inherited from AbstractAutowireCapableObjectFactory) Predict the eventual object type (of the processed object instance) for the specified object.
RemoveEagerlyCachedSingleton (inherited from AbstractAutowireCapableObjectFactory) Remove the specified singleton from the singleton cache that has been added before by a call to AddEagerlyCachedSingleton
RemoveSingleton (inherited from AbstractObjectFactory) Remove the object identified by the supplied name from this factory's singleton cache.
ResolveObjectType (inherited from AbstractObjectFactory) 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.
ResolveReference (inherited from AbstractAutowireCapableObjectFactory) Resolve a reference to another object in the factory.
TransformedObjectName (inherited from AbstractObjectFactory) Return the object name, stripping out the factory dereference prefix if necessary, and resolving aliases to canonical names.
UnsatisfiedNonSimpleProperties (inherited from AbstractAutowireCapableObjectFactory) Return an array of object-type property names that are unsatisfied.
WireEvents (inherited from AbstractAutowireCapableObjectFactory) Wires up any exposed events in the object instance in the given IObjectWrapper with any event handler values from the definition.

See Also

XmlObjectFactory Class | Spring.Objects.Factory.Xml Namespace