This is an automated email from the ASF dual-hosted git repository.
arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new 35171c082 FINERACT-1971: Marking the fallback method as public so it
works properly with Resilience4J
35171c082 is described below
commit 35171c08236e272479e8c2703d45251030196ab8
Author: Arnold Galovics <[email protected]>
AuthorDate: Tue Nov 28 14:12:54 2023 +0100
FINERACT-1971: Marking the fallback method as public so it works properly
with Resilience4J
---
.../commands/service/SynchronousCommandProcessingService.java | 2 +-
.../jobs/service/SchedularWritePlatformServiceJpaRepositoryImpl.java | 2 +-
.../service/LoanWritePlatformServiceJpaRepositoryImpl.java | 2 +-
.../service/SavingsAccountWritePlatformServiceJpaRepositoryImpl.java | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
b/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
index 72e9c70e9..b0ac36171 100644
---
a/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
+++
b/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
@@ -215,7 +215,7 @@ public class SynchronousCommandProcessingService implements
CommandProcessingSer
}
@SuppressWarnings("unused")
- private CommandProcessingResult fallbackExecuteCommand(Exception e) {
+ public CommandProcessingResult fallbackExecuteCommand(Exception e) {
if (e instanceof
RollbackTransactionAsCommandIsNotApprovedByCheckerException ex) {
return logCommand(ex.getCommandSourceResult());
}
diff --git
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/service/SchedularWritePlatformServiceJpaRepositoryImpl.java
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/service/SchedularWritePlatformServiceJpaRepositoryImpl.java
index d8a1f9e6d..5ffc473a5 100644
---
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/service/SchedularWritePlatformServiceJpaRepositoryImpl.java
+++
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/service/SchedularWritePlatformServiceJpaRepositoryImpl.java
@@ -155,7 +155,7 @@ public class SchedularWritePlatformServiceJpaRepositoryImpl
implements Schedular
}
@SuppressWarnings("unused")
- private boolean fallbackProcessJobDetailForExecution(Exception e) {
+ public boolean fallbackProcessJobDetailForExecution(Exception e) {
return false;
}
diff --git
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
index 551b952e3..73953e16b 100644
---
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
+++
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
@@ -2426,7 +2426,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl
implements LoanWritePlatf
}
@SuppressWarnings("unused")
- private void fallbackRecalculateInterest(Throwable t) {
+ public void fallbackRecalculateInterest(Throwable t) {
// NOTE: allow caller to catch the exceptions
// NOTE: wrap throwable only if really necessary
throw errorHandler.getMappable(t, null, null,
"loan.recalculateinterest");
diff --git
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccountWritePlatformServiceJpaRepositoryImpl.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccountWritePlatformServiceJpaRepositoryImpl.java
index ca47a7f62..d98e18b1b 100644
---
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccountWritePlatformServiceJpaRepositoryImpl.java
+++
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccountWritePlatformServiceJpaRepositoryImpl.java
@@ -1378,8 +1378,8 @@ public class
SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
}
@SuppressWarnings("unused")
- private SavingsAccountData fallbackPostInterest(SavingsAccountData
savingsAccountData, boolean postInterestAs,
- LocalDate transactionDate, boolean backdatedTxnsAllowedTill,
Throwable t) {
+ public SavingsAccountData fallbackPostInterest(SavingsAccountData
savingsAccountData, boolean postInterestAs, LocalDate transactionDate,
+ boolean backdatedTxnsAllowedTill, Throwable t) {
// NOTE: allow caller to catch the exceptions
// NOTE: wrap throwable only if really necessary
throw errorHandler.getMappable(t, null, null, "savings.postinterest");