Interface IService

All Known Implementing Classes:
ApplicationService, AsyncService, BaseService, CacheService, ComponentService, DatasourceService, FunctionService, InterceptorService, ModuleService, SchedulerService

public interface IService
The BoxLang service interface. If you implement this interface, your class will be treated as a BoxLang service. This means that it will be automatically registered with the BoxLang runtime and will be available for use in BoxLang code.

Every module is scaned for services and registered in the BoxRuntime

  • Method Summary

    Modifier and Type
    Method
    Description
    Get the unique service name
    void
    The shutdown event is fired when the runtime shuts down
    void
    The startup event is fired when the runtime starts up
  • Method Details

    • getName

      Key getName()
      Get the unique service name
    • onStartup

      void onStartup()
      The startup event is fired when the runtime starts up
    • onShutdown

      void onShutdown(Boolean force)
      The shutdown event is fired when the runtime shuts down
      Parameters:
      force - Whether the shutdown is forced