Class BasicConfigOperationExecutor<K>

java.lang.Object
me.a8kj.config.file.operation.BasicConfigOperationExecutor<K>
Type Parameters:
K - the type of data keys used in the configuration.
All Implemented Interfaces:
ConfigOperationExecutor<K>

public class BasicConfigOperationExecutor<K> extends Object implements ConfigOperationExecutor<K>
A standard implementation of ConfigOperationExecutor that orchestrates the execution of configuration operations with integrated logging and error handling. This executor ensures that every operation is tracked and any failures are properly logged.
Since:
0.1
Author:
a8kj7sea
  • Constructor Details

    • BasicConfigOperationExecutor

      public BasicConfigOperationExecutor()
  • Method Details

    • execute

      public void execute(ConfigOperation<K> operation) throws IOException
      Executes a given ConfigOperation while managing the execution lifecycle. It handles pre-execution logging, triggers the operation logic, and logs either the successful completion or the resulting exception.
      Specified by:
      execute in interface ConfigOperationExecutor<K>
      Parameters:
      operation - the operation to be performed on the configuration file.
      Throws:
      IOException - if the operation encounters an I/O error during execution.
      Since:
      0.1