Klasse DisposeResource

java.lang.Object
org.obrel.core.RelatedObject
org.obrel.core.SerializableRelatedObject
Alle implementierten Schnittstellen:
Serializable, org.obrel.core.Relatable

public class DisposeResource extends ProcessStep
A process step that closes and/or disposes a resource that is contained in a certain parameter. The ID of the parameter that contains the resource to be disposed must be set in this step's parameter DISPOSE_RESOURCE.
Siehe auch:
  • Felddetails

    • DISPOSE_RESOURCE

      public static final org.obrel.core.RelationType<org.obrel.core.RelationType<?>> DISPOSE_RESOURCE
      The ID of the parameter that contains the resource to be disposed.
  • Konstruktordetails

    • DisposeResource

      public DisposeResource()
      Creates a new instance.
  • Methodendetails

    • execute

      protected void execute() throws ProcessException, IOException
      Reads the resource object from the process parameters and disposes it. The ID of the parameter to read the object from must be contained in this step's parameter DISPOSE_RESOURCE.
      Angegeben von:
      execute in Klasse ProcessStep
      Löst aus:
      ProcessException - if the parameter ID of the resource to be disposed is not set or the disposing of the resource fails
      IOException