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

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

Best Java code snippets using org.springframework.batch.core.step.tasklet.MethodInvokingTaskletAdapter.setArguments (Showing top 3 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: 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.taskletMethodInvokingTaskletAdaptersetArguments

Popular methods of MethodInvokingTaskletAdapter

  • invokeDelegateMethod
  • mapResult
    If the result is an ExitStatus already just return that, otherwise return ExitStatus#COMPLETED.
  • getArguments
  • <init>
  • execute
    Delegate execution to the target object and translate the return value to an ExitStatus by invoking
  • setTargetMethod
  • setTargetObject

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top PhpStorm plugins
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