org.springframework.batch.item.jms
Class JmsNewMethodArgumentsIdentifier<T>

java.lang.Object
  extended by org.springframework.batch.item.jms.JmsNewMethodArgumentsIdentifier<T>
All Implemented Interfaces:
NewMethodArgumentsIdentifier

public class JmsNewMethodArgumentsIdentifier<T>
extends Object
implements NewMethodArgumentsIdentifier

A NewMethodArgumentsIdentifier for JMS that looks for a message in the arguments and checks its delivery status.

Author:
Dave Syer

Constructor Summary
JmsNewMethodArgumentsIdentifier()
           
 
Method Summary
 boolean isNew(Object[] args)
          If any of the arguments is a message, check the JMS re-delivered flag and return it, otherwise return false to be on the safe side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsNewMethodArgumentsIdentifier

public JmsNewMethodArgumentsIdentifier()
Method Detail

isNew

public boolean isNew(Object[] args)
If any of the arguments is a message, check the JMS re-delivered flag and return it, otherwise return false to be on the safe side.

Specified by:
isNew in interface NewMethodArgumentsIdentifier
Parameters:
args - the current method arguments.
Returns:
true if the item is known to have never been processed before.
See Also:
NewMethodArgumentsIdentifier.isNew(java.lang.Object[])


Copyright © 2013 SpringSource. All Rights Reserved.