Package me.a8kj.config.file.operation
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>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ConfigOperation<K> operation) Executes a givenConfigOperationwhile managing the execution lifecycle.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.a8kj.config.file.operation.ConfigOperationExecutor
executeAll
-
Constructor Details
-
BasicConfigOperationExecutor
public BasicConfigOperationExecutor()
-
-
Method Details
-
execute
Executes a givenConfigOperationwhile 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:
executein interfaceConfigOperationExecutor<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
-