Class MoneyHelperInitializationService
java.lang.Object
org.apache.fineract.infrastructure.configuration.service.MoneyHelperInitializationService
Service to initialize MoneyHelper configurations for multi-tenant environments. This service bridges the gap between
global configuration and MoneyHelper's tenant-specific caching.
Note: MoneyHelper rounding mode is immutable once initialized to maintain data integrity. Updates require application
restart to take effect.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeTenantRoundingMode(org.apache.fineract.infrastructure.core.domain.FineractPlatformTenant tenant) Initialize MoneyHelper for a specific tenant.booleanisTenantInitialized(String tenantIdentifier) Check if MoneyHelper is initialized for a tenant.
-
Constructor Details
-
MoneyHelperInitializationService
public MoneyHelperInitializationService()
-
-
Method Details
-
initializeTenantRoundingMode
public void initializeTenantRoundingMode(org.apache.fineract.infrastructure.core.domain.FineractPlatformTenant tenant) Initialize MoneyHelper for a specific tenant. This method should be called during tenant setup and whenever rounding mode configuration changes.- Parameters:
tenant- the tenant to initialize
-
isTenantInitialized
Check if MoneyHelper is initialized for a tenant.- Parameters:
tenantIdentifier- the tenant identifier- Returns:
- true if initialized, false otherwise
-