[framework] TxCore → common-framework (ACM-FW-001)
This commit is contained in:
parent
242d9d13de
commit
dedbfdc4a6
1 changed files with 18 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
Reference in a new issue