Package org.springframework.cloud.task.batch.partition

# Class PassThroughCommandLineArgsProvider

java.lang.Object
org.springframework.cloud.task.batch.partition.PassThroughCommandLineArgsProvider

All Implemented Interfaces:
  `CommandLineArgsProvider`

public class PassThroughCommandLineArgsProvider extends Object implements CommandLineArgsProvider
Returns the `List<String>` provided.

Since:
  1.1.0
Author:
  Michael Minella

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PassThroughCommandLineArgsProvider(List<String> commandLineArgs)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<String>`
  `getCommandLineArgs(org.springframework.batch.item.ExecutionContext executionContext)`
  Returns a unique list of command line arguements to be passed to the partition's worker for the specified `ExecutionContext`.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PassThroughCommandLineArgsProvider

    public PassThroughCommandLineArgsProvider(List<String> commandLineArgs)

- ## Method Details

  - ### getCommandLineArgs

    public List<String> getCommandLineArgs(org.springframework.batch.item.ExecutionContext executionContext)
    Description copied from interface: `CommandLineArgsProvider`
    Returns a unique list of command line arguements to be passed to the partition's worker for the specified `ExecutionContext`. Note: This method is called once per partition.
    Specified by:
      `getCommandLineArgs` in interface `CommandLineArgsProvider`
    Parameters:
      `executionContext` - the unique state for the step to be executed.
    Returns:
      a list of formatted command line arguments to be passed to the worker (the list will be joined via spaces).