Interface StepResource<T>
- All Superinterfaces:
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 TypeMethodDescriptiongetId()
Returns the ID of the step resource for the custom step.getResource
(StepResourceContext resourceContext) 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
Returns the resource to be used by the custom step.- Parameters:
resourceContext
- Step resource context- Returns:
- Step resource
-
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
-