Class MoneyHelperInitializationService

java.lang.Object
org.apache.fineract.infrastructure.configuration.service.MoneyHelperInitializationService

@Service public class MoneyHelperInitializationService extends Object
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 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

      public boolean isTenantInitialized(String tenantIdentifier)
      Check if MoneyHelper is initialized for a tenant.
      Parameters:
      tenantIdentifier - the tenant identifier
      Returns:
      true if initialized, false otherwise