类 DefaultJobParametersExtractor

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      JobParametersgetJobParameters​(Job job, StepExecution stepExecution)
      Extract job parameters from the step execution, for example from the execution context or other properties.
      voidsetKeys​(java.lang.String[] keys)
      The key names to pull out of the execution context or job parameters, if they exist.
      voidsetUseAllParentParameters​(boolean useAllParentParameters)
      setter to support switching off all parent parameters
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • setKeys

        public void setKeys​(java.lang.String[] keys)
        The key names to pull out of the execution context or job parameters, if they exist. If a key doesn't exist in the execution context then the job parameters from the enclosing job execution are tried, and if there is nothing there either then no parameter is extracted. Key names ending with (long), (int), (double), (date) or (string) will be assumed to refer to values of the respective type and assigned to job parameters accordingly (there will be an error if they are not of the right type). Without a special suffix in that form a parameter is assumed to be of type String.
        参数:
        keys - the keys to set
      • setUseAllParentParameters

        public void setUseAllParentParameters​(boolean useAllParentParameters)
        setter to support switching off all parent parameters
        参数:
        useAllParentParameters - if false do not include parent parameters. True if all parent parameters need to be included.