Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageListenerAdapter Members

MessageListenerAdapter overview

Public Static (Shared) Fields

ORIGINAL_DEFAULT_HANDLER_METHOD The default handler method name.

Public Instance Constructors

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

Public Instance Properties

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 ORIGINAL_DEFAULT_HANDLER_METHOD ("HandleMessage"}.
DefaultResponseDestination Sets the default destination to send response messages to. This will be applied in case of a request message that does not carry a "JMSReplyTo" field. 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" or "DefaultResponseTopicName", to be dynamically resolved via the DestinationResolver.
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 "EMSReplyTo" field. Alternatively, specify a JMS Destination object as "defaultResponseDestination".
DefaultResponseTopicName Sets the name of the default response topic to send response messages to. This will be applied in case of a request message that does not carry a "ReplyTo" field. Alternatively, specify a JMS Destination object as "defaultResponseDestination".
DestinationResolver Gets or sets the destination resolver that should be used to resolve response destination names for this adapter. The default resolver is a DynamicDestinationResolver. Specify another implementation, for other strategies, perhaps from a directory service.
HandlerObject Gets or sets the handler object to delegate message listening to.
MessageConverter Gets or sets the message converter that will convert incoming JMS messages to listener method arguments, and objects returned from listener methods back to EMS messages.

Public Instance Methods

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.
OnMessageOverloaded. Standard JMS {@link MessageListener} entry point. Delegates the message to the target listener method, with appropriate conversion of the message arguments
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

BuildMessage Builds a JMS message to be sent as response based on the given result object.
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 listener method that is supposed to handle the given message. The default implementation simply returns the configured default listener method, if any.
GetResponseDestination Determine a response destination for the given message.
HandleListenerException Handle the given exception that arose during listener execution. The default implementation logs the exception at error level. This method only applies when used as standard EMS MessageListener. In case of the Spring ISessionAwareMessageListener mechanism, exceptions get handled by the caller instead.
HandleResult Handles the given result object returned from the listener method, sending a response message back.
InitDefaultStrategies Initialize the default implementations for the adapter's strategies.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
PostProcessProducer Post-process the given message producer before using it to send the response. The default implementation is empty.
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.
ResolveDefaultResponseDestination Resolves the default response destination into a Destination, using this accessor's DestinationResolver in case of a destination name.
SendResponse Sends the given response message to the given destination.

See Also

MessageListenerAdapter Class | Spring.Messaging.Ems.Listener.Adapter Namespace