Property | Type | Description | |
---|---|---|---|
ORIGINAL_DEFAULT_LISTENER_METHOD | string |
Method | Description | |
---|---|---|
AfterPropertiesSet ( ) : void |
Invoked by an Spring.Objects.Factory.IObjectFactory after it has injected all of an object's dependencies. This method allows the object instance to perform the kind of initialization only possible when all of it's dependencies have been injected (set), and to throw an appropriate exception in the event of misconfiguration. Please do consult the class level documentation for the Spring.Objects.Factory.IObjectFactory interface for a description of exactly when this method is invoked. In particular, it is worth noting that the Spring.Objects.Factory.IObjectFactoryAware and Spring.Context.IApplicationContextAware callbacks will have been invoked prior to this method being called. |
|
MessageListenerAdapter ( ) : System.Collections.Generic |
Initializes a new instance of the MessageListenerAdapter class.
|
|
MessageListenerAdapter ( object handlerObject ) : System.Collections.Generic |
Initializes a new instance of the MessageListenerAdapter class.
|
|
OnMessage ( System.Messaging.Message message ) : void |
Called when message is received.
|
Method | Description | |
---|---|---|
BuildListenerArguments ( object convertedMessage ) : object[] |
Builds an array of arguments to be passed into the taret listener method. Allows for multiple method arguments to be built from a single message object. The default implementation builds an array with the given message object as sole element. This means that the extracted message will always be passed into a single method argument, even if it is an array, with the target method having a corresponding single argument of the array's type declared. This can be overridden to treat special message content such as arrays differently, for example passing in each element of the message array as distinct method argument. |
|
BuildMessage ( object result ) : System.Messaging.Message |
Builds a MSMQ message to be sent as response based on the given result object.
|
|
ExtractMessage ( System.Messaging.Message message ) : object |
Extracts the message body from the given message.
|
|
GetHandlerMethodName ( System.Messaging.Message originalMessage, object extractedMessage ) : string |
Gets the name of the handler method.
|
|
GetResponseDestination ( System.Messaging.Message request, System.Messaging.Message response ) : System.Messaging.MessageQueue |
Determine a response destination for the given message. The default implementation first checks the MSMQ ResponseQueue of the supplied request; if that is not |
|
HandleResult ( object result, System.Messaging.Message request ) : void |
Handles the result of a listener method.
|
|
InitDefaultStrategies ( ) : void |
Initialize the default implementations for the adapter's strategies.
|
|
InvokeListenerMethod ( string methodName, object arguments ) : object |
Invokes the specified listener method. This default implementation can only handle invoking a single argument method.
|
|
PostProcessResponse ( System.Messaging.Message request, System.Messaging.Message response ) : void |
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 ( System.Messaging.MessageQueue destination, System.Messaging.Message response ) : void |
Sends the given response message to the given destination.
|
protected BuildListenerArguments ( object convertedMessage ) : object[] | ||
convertedMessage | object | The converted message. |
return | object[] |
protected BuildMessage ( object result ) : System.Messaging.Message | ||
result | object | The result. |
return | System.Messaging.Message |
protected ExtractMessage ( System.Messaging.Message message ) : object | ||
message | System.Messaging.Message | The message. |
return | object |
protected GetHandlerMethodName ( System.Messaging.Message originalMessage, object extractedMessage ) : string | ||
originalMessage | System.Messaging.Message | The original message. |
extractedMessage | object | The extracted message. |
return | string |
protected GetResponseDestination ( System.Messaging.Message request, System.Messaging.Message response ) : System.Messaging.MessageQueue | ||
request | System.Messaging.Message | The request. |
response | System.Messaging.Message | The response. |
return | System.Messaging.MessageQueue |
protected HandleResult ( object result, System.Messaging.Message request ) : void | ||
result | object | The result that was returned from listener. |
request | System.Messaging.Message | The original request. |
return | void |
protected InvokeListenerMethod ( string methodName, object arguments ) : object | ||
methodName | string | Name of the listener method. |
arguments | object | The arguments to be passed in. Only the first argument in the list is currently /// supported in this implementation. |
return | object |
public MessageListenerAdapter ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public MessageListenerAdapter ( object handlerObject ) : System.Collections.Generic | ||
handlerObject | object | The handler object. |
return | System.Collections.Generic |
public OnMessage ( System.Messaging.Message message ) : void | ||
message | System.Messaging.Message | The message. |
return | void |
protected PostProcessResponse ( System.Messaging.Message request, System.Messaging.Message response ) : void | ||
request | System.Messaging.Message | The original incoming message. |
response | System.Messaging.Message | The outgoing MSMQ message about to be sent. |
return | void |
protected SendResponse ( System.Messaging.MessageQueue destination, System.Messaging.Message response ) : void | ||
destination | System.Messaging.MessageQueue | The destination to send to. |
response | System.Messaging.Message | The outgoing message about to be sent. |
return | void |