Tabnine Logo
MethodInvokingTaskletAdapter.mapResult
Code IndexAdd Tabnine to your IDE (free)

How to use
mapResult
method
in
org.springframework.batch.core.step.tasklet.MethodInvokingTaskletAdapter

Best Java code snippets using org.springframework.batch.core.step.tasklet.MethodInvokingTaskletAdapter.mapResult (Showing top 5 results out of 315)

origin: spring-projects/spring-batch

/**
 * Delegate execution to the target object and translate the return value to
 * an {@link ExitStatus} by invoking a method in the delegate POJO. Ignores
 * the {@link StepContribution} and the attributes.
 *
 * @see Tasklet#execute(StepContribution, ChunkContext)
 */
@Override
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
  if (getArguments() == null) {
    setArguments(new Object[]{contribution, chunkContext});
  }
  contribution.setExitStatus(mapResult(invokeDelegateMethod()));
  return RepeatStatus.FINISHED;
}
origin: org.springframework.batch/org.springframework.batch.core

/**
 * Delegate execution to the target object and translate the return value to
 * an {@link ExitStatus} by invoking a method in the delegate POJO. Ignores
 * the {@link StepContribution} and the attributes.
 * 
 * @see Tasklet#execute(StepContribution, ChunkContext)
 */
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
  contribution.setExitStatus(mapResult(invokeDelegateMethod()));
  return RepeatStatus.FINISHED;
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

/**
 * Delegate execution to the target object and translate the return value to
 * an {@link ExitStatus} by invoking a method in the delegate POJO. Ignores
 * the {@link StepContribution} and the attributes.
 *
 * @see Tasklet#execute(StepContribution, ChunkContext)
 */
@Override
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
  contribution.setExitStatus(mapResult(invokeDelegateMethod()));
  return RepeatStatus.FINISHED;
}
origin: apache/servicemix-bundles

/**
 * Delegate execution to the target object and translate the return value to
 * an {@link ExitStatus} by invoking a method in the delegate POJO. Ignores
 * the {@link StepContribution} and the attributes.
 *
 * @see Tasklet#execute(StepContribution, ChunkContext)
 */
@Override
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
  if (getArguments() == null) {
    setArguments(new Object[]{contribution, chunkContext});
  }
  contribution.setExitStatus(mapResult(invokeDelegateMethod()));
  return RepeatStatus.FINISHED;
}
origin: org.springframework.batch/spring-batch-core

/**
 * Delegate execution to the target object and translate the return value to
 * an {@link ExitStatus} by invoking a method in the delegate POJO. Ignores
 * the {@link StepContribution} and the attributes.
 *
 * @see Tasklet#execute(StepContribution, ChunkContext)
 */
@Override
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
  if (getArguments() == null) {
    setArguments(new Object[]{contribution, chunkContext});
  }
  contribution.setExitStatus(mapResult(invokeDelegateMethod()));
  return RepeatStatus.FINISHED;
}
org.springframework.batch.core.step.taskletMethodInvokingTaskletAdaptermapResult

Javadoc

If the result is an ExitStatus already just return that, otherwise return ExitStatus#COMPLETED.

Popular methods of MethodInvokingTaskletAdapter

  • invokeDelegateMethod
  • getArguments
  • setArguments
  • <init>
  • execute
    Delegate execution to the target object and translate the return value to an ExitStatus by invoking
  • setTargetMethod
  • setTargetObject

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • String (java.lang)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Path (java.nio.file)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • CodeWhisperer alternatives
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