Package org.anchoranalysis.mpp.io.input
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 voidcopyTo(SharedObjects target, Logger logger)Adds any exported shared objects to the target container.
-
Method Details
-
copyTo
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- theSharedObjectscontainer where the exported objects will be addedlogger- aLoggerfor reporting non-fatal errors- Throws:
OperationFailedException- if a fatal error occurs during the export process
-