Interface ExportSharedObjects

All Known Implementing Classes:
MultiInput

public interface ExportSharedObjects
An interface for exporting shared objects to a target container.

This interface defines a method for copying certain shared objects to a target SharedObjects container. Implementations of this interface should define the specific logic for exporting their shared objects.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copyTo(SharedObjects target, Logger logger)
    Adds any exported shared objects to the target container.
  • Method Details

    • copyTo

      void copyTo(SharedObjects target, Logger logger) throws OperationFailedException
      Adds any exported shared objects to the target container.

      This method is responsible for copying the relevant shared objects from the implementing class to the provided target container. Non-fatal errors should be logged using the provided logger, while fatal errors should throw an OperationFailedException.

      Parameters:
      target - the SharedObjects container where the exported objects will be added
      logger - a Logger for reporting non-fatal errors
      Throws:
      OperationFailedException - if a fatal error occurs during the export process