public class JmsMethodArgumentsKeyGenerator extends Object implements MethodArgumentsKeyGenerator
MethodArgumentsKeyGenerator
for JMSConstructor and Description |
---|
JmsMethodArgumentsKeyGenerator() |
Modifier and Type | Method and Description |
---|---|
Object |
getKey(Object[] items)
If the message is a
Message then returns the JMS message ID. |
public Object getKey(Object[] items)
Message
then returns the JMS message ID.
Otherwise just return the first argument.getKey
in interface MethodArgumentsKeyGenerator
items
- the current item.UnexpectedInputException
- if the JMS id cannot be determined from
a JMS MessageIllegalArgumentException
- if the arguments are emptyMethodArgumentsKeyGenerator.getKey(Object[])
Copyright © 2014 SpringSource. All rights reserved.