Interface StepResource<T>

All Superinterfaces:
AutoCloseable

public interface StepResource<T> extends AutoCloseable
Step resource of a custom step. Resources refer to any shared resources that can be created and used throughout processing. The resource should be closed after processing.
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the ID of the step resource for the custom step.
    Returns the resource to be used by the custom step.
    Returns the class of the resource to be used by the custom step.

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • getResource

      T getResource(StepResourceContext resourceContext)
      Returns the resource to be used by the custom step.
      Parameters:
      resourceContext - Step resource context
      Returns:
      Step resource
    • getResourceClass

      Class<T> getResourceClass()
      Returns the class of the resource to be used by the custom step.
      Returns:
      Class of the step resource
    • getId

      String getId()
      Returns the ID of the step resource for the custom step.
      Returns:
      ID of the step resource for the custom step