Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IApplicationContextAware Interface

To be implemented by any object that wishes to be notified of the IApplicationContext that it runs in.

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

[Visual Basic]
Public Interface IApplicationContextAware
[C#]
public interface IApplicationContextAware

Types that implement IApplicationContextAware

Type Description
BaseCacheAdvice Base class for different cache advice implementations that provide access to common functionality, such as obtaining a cache instance.
CacheAspect Caching aspect implementation.
CacheParameterAdvice Implementation of a parameter caching advice.
CacheParameterAdvisor Convinience advisor implementation that applies CacheParameterAdvice to all the methods that have CacheParameterAttribute defined on one or more of their parameters.
CacheResultAdvice Implementation of a result caching advice.
CacheResultAdvisor Convinience advisor implementation that applies CacheResultAdvice to all the methods that have CacheResultAttribute defined.
InvalidateCacheAdvice Implementation of a cache invalidation advice.
InvalidateCacheAdvisor Convinience advisor implementation that applies InvalidateCacheAdvice to all the methods that have InvalidateCacheAttribute defined.
ParameterValidationAdvice This advice is typically applied to service-layer methods in order to validate method arguments.
ParameterValidationAdvisor Convinience advisor implementation that applies ParameterValidationAdvice to all the methods that have ValidatedAttribute defined on one or more of their parameters.
ApplicationObjectSupport Convenient superclass for application objects that want to be aware of the application context, e.g. for custom lookup of collaborating object or for context-specific resource access.
LocalSessionFactoryObject An IFactoryObject that creates a local Hibernate SessionFactory instance. Behaves like a SessionFactory instance when used as bean reference, e.g. for HibernateTemplate's "SessionFactory" property.
LocalSessionFactoryObject An IFactoryObject that creates a local Hibernate SessionFactory instance. Behaves like a SessionFactory instance when used as bean reference, e.g. for HibernateTemplate's "SessionFactory" property.
DefaultMessageQueueFactory A IMessageQueueFactory implementation that caches MessageQueue and IMessageConverter instances. The MessageQueue objects are created by retrieving them by-name from the ApplicationContext.
MessageQueueMetadataCache Missing <summary> documentation for T:Spring.Messaging.Core.MessageQueueMetadataCache
MessageQueueTemplate Helper class that simplifies MSMQ access code.
AbstractMessageListenerContainer Defines a minimal programming model for message listener containers. They are expected to invoke a IMessageListener upon asynchronous receives of a MSMQ message. Access to obtain MessageQueue and IMessageConverter instances is available through the IMessageQueueFactory property, the default implementation DefaultMessageQueueFactory provides per-thread instances of these classes.
AbstractPeekingMessageListenerContainer Base class for listener container implementations which are based on Peeking for messages on a MessageQueue. Peeking is the only resource efficient approach that can be used in order to have MessageQueue receipt in conjunction with transactions, either local MSMQ transactions, local ADO.NET based transactions, or DTC transactions. See SimpleMessageListenerContainer for an implementation based on a synchronous receives and you do not require transactional support.
AbstractSendToQueueExceptionHandler Provides common functionality to exception handlers that will send the exceptional message to another queue.
AbstractTransactionalMessageListenerContainer An implementation of a Peeking based MessageListener container that starts a transaction before recieving a message. The IPlatformTransactionManager implementation determines the type of transaction that will be started. An exception while processing the message will result in a rollback, otherwise a transaction commit will be performed.
DistributedTxMessageListenerContainer A MessageListenerContainer that uses distributed (DTC) based transactions. Exceptions are handled by instances of IDistributedTransactionExceptionHandler.
MessageListenerAdapter Message listener adapter that delegates the handling of messages to target listener methods via reflection DynamicReflectionManager, with flexible message type conversion. Allows listener methods to operate on message content types, completely independent from the MSMQ API.
NonTransactionalMessageListenerContainer An implementation of a Peeking based MessageListener container that does not surround the receive operation with a transaction.
SendToQueueDistributedTransactionExceptionHandler detects poison messages by tracking the Message Id property in memory with a count of how many times an exception has occurred. If that count is greater than the handler's MaxRetry count it will be sent to another queue. The queue to send the message to is specified via the property M essageQueueObjectName.
SendToQueueExceptionHandler Keeps track of the Message's Id property in memory with a count of how many times an exception has occurred. If that count is greater than the handler's MaxRetry count it will be sent to another queue using the provided MessageQueueTransaction. The queue to send the message to is specified via the property MessageQueueObjectName.
TransactionalMessageListenerContainer A MessageListenerContainer that uses local (non-DTC) based transactions. Exceptions are handled by instances of IMessageTransactionExceptionHandler.
CaoExporter Registers an object type on the server as a Client Activated Object (CAO).
JobDetailObject Convenience subclass of Quartz' JobDetail class that eases properties based usage.
SchedulerFactoryObject FactoryObject that sets up a Quartz Scheduler and exposes it for object references.
AbstractWizard Convinience implementation of the wizard-like page controller.
MasterPage Spring.NET Master Page implementation for ASP.NET 2.0
Page Represents an .aspx file, also known as a Web Forms page, requested from a server that hosts an ASP.NET Web application.
UserControl Extends standard .Net user control by adding data binding and localization functionality.

Remarks

Implementing this interface makes sense when an object requires access to a set of collaborating objects. Note that configuration via object references is preferable to implementing this interface just for object lookup purposes.

This interface can also be implemented if an object needs access to file resources, i.e. wants to call GetResource, or access to the IMessageSource. However, it is preferable to implement the more specific IResourceLoaderAware interface to receive a reference to the IMessageSource object in that scenario.

Note that IResource dependencies can also be exposed as object properties of the IResource type, populated via strings with automatic type conversion performed by an object factory. This obviates the need for implementing any callback interface just for the purpose of accessing a specific file resource.

ApplicationObjectSupport is a convenience implementation of this interface for your application objects.

For a list of all object lifecycle methods, see the overview for the IObjectFactory interface.

Requirements

Namespace: Spring.Context

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

See Also

IApplicationContextAware Members | Spring.Context Namespace