Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebApplicationContext Members

WebApplicationContext overview

Public Static (Shared) Properties

Current Returns the web application context for the current request's filepath

Public Static (Shared) Methods

GetContext Returns the web application context for the given (absolute!) virtual path
GetRootContext Returns the root context of this web application

Public Instance Constructors

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

Public Instance Properties

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

Public Instance Methods

AddObjectFactoryPostProcessor (inherited from AbstractApplicationContext) 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 (inherited from AbstractApplicationContext) Applies resources to object properties.
ConfigureObject (inherited from AbstractApplicationContext)Overloaded. Injects dependencies into the supplied target instance using the named object definition.
ContainsLocalObject (inherited from AbstractApplicationContext) 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 (inherited from AbstractApplicationContext) Does this object factory contain an object with the given name?
ContainsObjectDefinition (inherited from AbstractApplicationContext) Check if this object factory contains an object definition with the given name.
CreateObject (inherited from AbstractApplicationContext) Return an unconfigured(!) instance (possibly shared or independent) of the given object name.
Dispose (inherited from AbstractApplicationContext) 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 (inherited from AbstractApplicationContext) 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.
GetMessage (inherited from AbstractApplicationContext)Overloaded. Resolve the message identified by the supplied name.
GetObject (inherited from AbstractApplicationContext)Overloaded. Return an instance (possibly shared or independent) of the given object name.
GetObjectDefinition (inherited from AbstractApplicationContext)Overloaded. Return the registered IObjectDefinition for the given object, allowing access to its property values and constructor argument values.
GetObjectDefinitionNames (inherited from AbstractApplicationContext) Return the names of all objects defined in this factory.
GetObjectNamesForType (inherited from AbstractApplicationContext)Overloaded. Return the names of objects matching the given Type (including subclasses), judging from the object definitions.
GetObjectsOfType (inherited from AbstractApplicationContext)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.
GetResource (inherited from ConfigurableResourceLoader) Returns a IResource that has been mapped to the protocol of the supplied resourceName.
GetResourceObject (inherited from AbstractApplicationContext)Overloaded. Gets a localized resource object identified by the supplied name.
GetType (inherited from AbstractApplicationContext)Overloaded. Determine the Type of the object with the given name.
GetType (inherited from Object)Overloaded. Gets the Type of the current instance.
IsObjectNameInUse (inherited from AbstractXmlApplicationContext) Determine whether the given object name is already in use within this context's object factory, i.e. whether there is a local object or alias registered under this name.
IsPrototype (inherited from AbstractApplicationContext) Determines whether the specified object name is prototype. That is, will GetObject always return independent instances?
IsSingleton (inherited from AbstractApplicationContext) Is this object a singleton?
IsTypeMatch (inherited from AbstractApplicationContext) Determines whether the object with the given name matches the specified type.
PublishEvent (inherited from AbstractApplicationContext) Publishes an application context event.
PublishEvents (inherited from AbstractApplicationContext) Publishes all events of the source object.
Refresh (inherited from AbstractApplicationContext) Load or refresh the persistent representation of the configuration, which might an XML file, properties file, or relational database schema.
RegisterAlias (inherited from AbstractApplicationContext) 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 (inherited from AbstractApplicationContext) Register a new object definition with this registry. Must support RootObjectDefinition and ChildObjectDefinition.
Start (inherited from AbstractApplicationContext) Starts this component.
Stop (inherited from AbstractApplicationContext) Stops this component.
Subscribe (inherited from AbstractApplicationContext)Overloaded. Subscribes to all events published, if the subscriber implements compatible handler methods.
ToString returns detailed instance information for debugging
Unsubscribe (inherited from AbstractApplicationContext)Overloaded. Unsubscribes to all events published, if the subscriber implmenets compatible handler methods.

Public Instance Events

ContextEvent (inherited from AbstractApplicationContext) Raised in response to an implementation-dependant application context event.

Protected Instance Fields

log (inherited from AbstractApplicationContext) The ILog instance for this class.

Protected Instance Properties

ConfigurationLocations Return an array of resource locations, referring to the XML object definition files that this context should be built with.

Protected Instance Methods

AddDefaultObjectPostProcessor (inherited from AbstractApplicationContext) Adds the given IObjectPostProcessor to the list of standard processors being added to the underlying IConfigurableObjectFactory
CreateObjectFactory Creates web object factory for this context using parent context's factory as a parent.
CreateXmlObjectDefinitionReader Create a reader instance capable of handling web objects (Pages,Controls) for importing o bject definitions into the specified objectFactory.
CustomizeObjectFactory (inherited from AbstractXmlApplicationContext) Customizes the internal object factory used by this context.
EnsureKnownObjectPostProcessors (inherited from AbstractApplicationContext) 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 (inherited from AbstractApplicationContext) Returns the internal message source of the parent context if said parent context is an AbstractApplicationContext, else simply the parent context itself.
GetInternalParentObjectFactory (inherited from AbstractApplicationContext) Returns the internal object factory of the parent context if it implements IConfigurableApplicationContext; else, returns the parent context itself.
InitObjectDefinitionReader Initializes object definition reader.
LoadObjectDefinitions (inherited from AbstractXmlApplicationContext)Overloaded. Load the object definitions with the given XmlObjectDefinitionReader.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnContextEvent (inherited from AbstractApplicationContext)Overloaded. Raises an application context event.
OnPostRefresh (inherited from AbstractApplicationContext) Template method which can be overridden to add context-specific work after the context was refreshed but before the Refreshed event gets raised.
OnPreRefresh (inherited from AbstractApplicationContext) Template method which can be overridden to add context-specific work before the underlying object factory gets refreshed.
OnRefresh (inherited from AbstractApplicationContext) Template method which can be overridden to add context-specific refresh work.
PostProcessObjectFactory (inherited from AbstractApplicationContext) Modify the application context's internal object factory after its standard initialization.
RefreshObjectFactory (inherited from AbstractXmlApplicationContext) Instantiates and populates the underlying IObjectFactory with the object definitions yielded up by the ConfigurationLocations method.

Explicit Interface Implementations

IMessageSource.GetResourceObject (inherited from AbstractApplicationContext)Overloaded. Gets a localized resource object identified by the supplied name.

See Also

WebApplicationContext Class | Spring.Context.Support Namespace