Interface DataProviderHolder


public interface DataProviderHolder
This interface must be implemented by tasks that are not implementations of Task when they need access to the job's DataProvider.

Implementations should ensure the DataProvider is not kept as a persistent (on-transient) attribute of the implementing class, otherwise it will be serialized along with the task after execution, causing additional CPU usage and network traffic.

Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Set the data provider for the task.
  • Method Details

    • setDataProvider

      void setDataProvider(DataProvider dataProvider)
      Set the data provider for the task.
      Parameters:
      dataProvider - the data provider set onto the job to which the tasks belongs.