Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractApplicationContext Members

AbstractApplicationContext overview

Public Static (Shared) Fields

ContextSectionName Name of the .Net config section that contains Spring.Net context definition.
DefaultRootContextName Default name of the root context.
EventRegistryObjectName The special, well-known-name of the default IEventRegistry in the context.
MessageSourceObjectName The special, well-known-name of the default IMessageSource in the context.

Public Instance Properties

DefaultResourceProtocol (inherited from ConfigurableResourceLoader) The default protocol to use for unqualified resources.
EventRegistry The IEventRegistry for this context.
IsCaseSensitive Gets a flag indicating whether context should be case sensitive.
IsRunning Gets a value indicating whether this component is currently running.
Item Return an instance (possibly shared or independent) of the given object name.
MessageSource The IMessageSource for this context.
Name A name for this context.
ObjectDefinitionCount Return the number of objects defined in the factory.
ObjectFactory Return the internal object factory of this application context.
ParentContext Gets the parent context, or a null reference (Nothing in Visual Basic) if there is no parent context.
ParentObjectFactory Return the parent object factory, or a null reference (Nothing in Visual Basic) if there is none.
StartupDate The date and time this context was first loaded.
StartupDateMilliseconds The timestamp when this context was first loaded.
SyncRoot An object that can be used to synchronize access to the AbstractXmlApplicationContext

Public Instance Methods

AddObjectFactoryPostProcessor Add a new IObjectFactoryPostProcessor that will get applied to the internal object factory of this application context on refresh, before any of the object definitions are evaluated.
ApplyResources Applies resources to object properties.
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
, ignoring an object of the given name from an ancestor object factory.
ContainsObject Does this object factory contain an object with the given name?
ContainsObjectDefinition Check if this object factory contains an object definition with the given name.
CreateObject Return an unconfigured(!) instance (possibly shared or independent) of the given object name.
Dispose Closes this context and disposes of any resources (such as singleton objects in the wrapped IObjectFactory).
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.
GetMessageOverloaded. Resolve the message identified by the supplied name.
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.
GetObjectDefinitionNames Return the names of all objects defined in this factory.
GetObjectNamesForTypeOverloaded. Return the names of objects matching the given Type (including subclasses), judging from the object definitions.
GetObjectsOfTypeOverloaded. 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.
GetResource (inherited from ConfigurableResourceLoader) Returns a IResource that has been mapped to the protocol of the supplied resourceName.
GetResourceObjectOverloaded. Gets a localized resource object identified by the supplied name.
GetTypeOverloaded. Determine the Type of the object with the given name.
GetType (inherited from Object)Overloaded. Gets the Type of the current instance.
IsObjectNameInUse Determine whether the given object name is already in use within this context, i.e. whether there is a local object. May be override by subclasses, the default implementation simply returns ContainsLocalObject
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.
PublishEvent Publishes an application context event.
PublishEvents Publishes all events of the source object.
Refresh Load or refresh the persistent representation of the configuration, which might an XML file, properties file, or relational database schema.
RegisterAlias Given a object name, create an alias. We typically use this method to support names that are illegal within XML ids (used for object names).
RegisterObjectDefinition Register a new object definition with this registry. Must support RootObjectDefinition and ChildObjectDefinition.
Start Starts this component.
Stop Stops this component.
SubscribeOverloaded. Subscribes to all events published, if the subscriber implements compatible handler methods.
ToString (inherited from Object)Returns a String that represents the current Object.
UnsubscribeOverloaded. Unsubscribes to all events published, if the subscriber implmenets compatible handler methods.

Public Instance Events

ContextEvent Raised in response to an implementation-dependant application context event.

Protected Instance Constructors

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

Protected Instance Fields

log The ILog instance for this class.

Protected Instance Methods

AddDefaultObjectPostProcessor Adds the given IObjectPostProcessor to the list of standard processors being added to the underlying IConfigurableObjectFactory
EnsureKnownObjectPostProcessors Ensures, that predefined ObjectPostProcessors are registered with this ObjectFactory
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.
GetInternalParentMessageSource Returns the internal message source of the parent context if said parent context is an AbstractApplicationContext, else simply the parent context itself.
GetInternalParentObjectFactory Returns the internal object factory of the parent context if it implements IConfigurableApplicationContext; else, returns the parent context itself.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnContextEventOverloaded. Raises an application context event.
OnPostRefresh Template method which can be overridden to add context-specific work after the context was refreshed but before the Refreshed event gets raised.
OnPreRefresh Template method which can be overridden to add context-specific work before the underlying object factory gets refreshed.
OnRefresh Template method which can be overridden to add context-specific refresh work.
PostProcessObjectFactory Modify the application context's internal object factory after its standard initialization.
RefreshObjectFactory Subclasses must implement this method to perform the actual configuration loading.

Explicit Interface Implementations

IMessageSource.GetResourceObjectOverloaded. Gets a localized resource object identified by the supplied name.

See Also

AbstractApplicationContext Class | Spring.Context.Support Namespace | IObjectPostProcessor | IObjectFactoryPostProcessor