Class ReloadServiceManager

java.lang.Object
com.thewinterframework.service.ReloadServiceManager

public class ReloadServiceManager extends Object
Manages the reloading of services.
  • Constructor Details

  • Method Details

    • addOnReload

      public void addOnReload(Class<?> service, Runnable reloadService)
      Adds a service to be reloaded.
      Parameters:
      service - The service
      reloadService - The reload service
    • reload

      Reloads all services.
      Returns:
      The result of the reload