Tabnine Logo
CompositeItemWriteListener.beforeWrite
Code IndexAdd Tabnine to your IDE (free)

How to use
beforeWrite
method
in
org.springframework.batch.core.listener.CompositeItemWriteListener

Best Java code snippets using org.springframework.batch.core.listener.CompositeItemWriteListener.beforeWrite (Showing top 7 results out of 315)

origin: spring-projects/spring-batch

/**
 * @see ItemWriteListener#beforeWrite(List)
 */
@Override
public void beforeWrite(List<? extends S> items) {
  try {
    itemWriteListener.beforeWrite(items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in beforeWrite.", getTargetException(e));
  }
}
origin: spring-projects/spring-batch

@Test
public void testBeforeWrite() {
  List<Object> item = Collections.singletonList(new Object());
  listener.beforeWrite(item);
  compositeListener.beforeWrite(item);
}
origin: spring-projects/spring-batch

@SuppressWarnings("serial")
@Test
public void testSetListeners() throws Exception {
  compositeListener.setListeners(new ArrayList<ItemWriteListener<? super Object>>() {
    {
      add(listener);
    }
  });
  List<Object> item = Collections.singletonList(new Object());
  listener.beforeWrite(item);
  compositeListener.beforeWrite(item);
}
origin: org.springframework.batch/org.springframework.batch.core

/**
 * @param items
 * @see ItemWriteListener#beforeWrite(List)
 */
public void beforeWrite(List<? extends S> items) {
  try {
    itemWriteListener.beforeWrite(items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in beforeWrite.", e);
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

/**
 * @param items
 * @see ItemWriteListener#beforeWrite(List)
 */
@Override
public void beforeWrite(List<? extends S> items) {
  try {
    itemWriteListener.beforeWrite(items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in beforeWrite.", e);
  }
}
origin: apache/servicemix-bundles

/**
 * @see ItemWriteListener#beforeWrite(List)
 */
@Override
public void beforeWrite(List<? extends S> items) {
  try {
    itemWriteListener.beforeWrite(items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in beforeWrite.", getTargetException(e));
  }
}
origin: org.springframework.batch/spring-batch-core

/**
 * @see ItemWriteListener#beforeWrite(List)
 */
@Override
public void beforeWrite(List<? extends S> items) {
  try {
    itemWriteListener.beforeWrite(items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in beforeWrite.", getTargetException(e));
  }
}
org.springframework.batch.core.listenerCompositeItemWriteListenerbeforeWrite

Javadoc

Call the registered listeners in order, respecting and prioritising those that implement Ordered.

Popular methods of CompositeItemWriteListener

  • afterWrite
    Call the registered listeners in reverse order, respecting and prioritising those that implement Ord
  • onWriteError
    Call the registered listeners in reverse order, respecting and prioritising those that implement Ord
  • register
    Register additional listener.
  • <init>
  • setListeners
    Public setter for the listeners.

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now