From dedbfdc4a62e50ac9d36b4dd2fea351d1c7f8f85 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 18 Jul 2026 11:11:55 +0000 Subject: [PATCH] =?UTF-8?q?[framework]=20TxCore=20=E2=86=92=20common-frame?= =?UTF-8?q?work=20(ACM-FW-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../klaro/acquirecore/framework/TxService.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxService.java diff --git a/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxService.java b/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxService.java new file mode 100644 index 0000000..27cfd16 --- /dev/null +++ b/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxService.java @@ -0,0 +1,18 @@ +package com.klaro.acquirecore.framework; + +/** + * Functional interface for transactional service operations. + * Represents a single unit of work within a transaction context. + */ +@FunctionalInterface +public interface TxService { + + /** + * Execute the service operation within the given transaction context. + * + * @param ctx the transaction context + * @param input the input data for the operation + * @return the result of the operation + */ + Object execute(TxContext ctx, Object input); +}