Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageListenerAdapter Members

MessageListenerAdapter overview

Public Static (Shared) Fields

ORIGINAL_DEFAULT_LISTENER_METHOD Out-of-the-box value for the default listener method: "HandleMessage"

Public Instance Constructors

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

Public Instance Properties

ApplicationContext Gets or sets the IApplicationContext that this object runs in.
DefaultHandlerMethod Gets or sets the default handler method to delegate to, for the case where no specific listener method has been determined. Out-of-the-box value is "HandleMessage".
DefaultResponseQueue Sets the default destination to send response messages to. This will be applied in case of a request message that does not carry a "ResponseQueue" property Response destinations are only relevant for listener methods that return result objects, which will be wrapped in a response message and sent to a response destination. Alternatively, specify a "DefaultResponseQueueName" to be dynamically resolved via the MessageQueueFactory.
DefaultResponseQueueName Sets the name of the default response queue to send response messages to. This will be applied in case of a request message that does not carry a "ResponseQueue" value. Alternatively, specify a response queue via the property DefaultResponseQueue.
HandlerObject Gets or sets the handler object to delegate message listening to.
MessageConverter Gets message converter that will convert incoming MSMQ messages to listener method arguments, and objects returned from listener methods back to MSMQ messages.
MessageConverterObjectName Gets or sets the name of the message converter object used to resolved a IMessageConverter instance.
MessageQueueFactory Gets or sets the message queue factory.
MessageQueueTemplate Sets the message queue template.

Public Instance Methods

AfterPropertiesSet Invoked by an IObjectFactory after it has injected all of an object's dependencies.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
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.
GetType (inherited from Object)Gets the Type of the current instance.
OnMessage Called when message is received.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

BuildMessage Builds a MSMQ message to be sent as response based on the given result object.
ExtractMessage Extracts the message body from the given message.
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.
GetHandlerMethodName Gets the name of the handler method.
GetResponseDestination Determine a response destination for the given message.
InitDefaultStrategies Initialize the default implementations for the adapter's strategies.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
PostProcessResponse Post-process the given response message before it will be sent. The default implementation sets the response's correlation id to the request message's correlation id.
SendResponse Sends the given response message to the given destination.

See Also

MessageListenerAdapter Class | Spring.Messaging.Listener Namespace