org.springframework.batch.core.step.skip
Class AlwaysSkipItemSkipPolicy

java.lang.Object
  extended by org.springframework.batch.core.step.skip.AlwaysSkipItemSkipPolicy
All Implemented Interfaces:
ItemSkipPolicy

public class AlwaysSkipItemSkipPolicy
extends Object
implements ItemSkipPolicy

Implementation of the ItemSkipPolicy interface that will always return that an item should be skipped.

Author:
Ben Hale, Lucas Ward

Constructor Summary
AlwaysSkipItemSkipPolicy()
           
 
Method Summary
 boolean shouldSkip(Throwable t, int skipCount)
          Returns true or false, indicating whether or not processing should continue with the given throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysSkipItemSkipPolicy

public AlwaysSkipItemSkipPolicy()
Method Detail

shouldSkip

public boolean shouldSkip(Throwable t,
                          int skipCount)
Description copied from interface: ItemSkipPolicy
Returns true or false, indicating whether or not processing should continue with the given throwable.

Specified by:
shouldSkip in interface ItemSkipPolicy
Parameters:
t - exception encountered while reading
skipCount - currently running count of skips
Returns:
true if reading should continue, false otherwise.


Copyright © 2009 SpringSource. All Rights Reserved.