Class MoneyHelperStartupInitializationService

java.lang.Object
org.apache.fineract.infrastructure.configuration.service.MoneyHelperStartupInitializationService
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@Service @DependsOn({"tenantDetailsService","moneyHelperInitializationService","tenantDatabaseUpgradeService"}) public class MoneyHelperStartupInitializationService extends Object implements org.springframework.beans.factory.InitializingBean
Service to initialize MoneyHelper for all tenants during application startup. This service runs after the application is fully started to ensure all database migrations and tenant configurations are complete.
  • Constructor Details

    • MoneyHelperStartupInitializationService

      public MoneyHelperStartupInitializationService()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Initialize MoneyHelper for all tenants after the application is ready. This method runs after ApplicationReadyEvent to ensure all database migrations and tenant configurations are complete. If it fails (for any reason), it will fail the application startup!
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception