Class LocalizationService

java.lang.Object
com.kosdev.kos.core.service.localization.LocalizationService

public final class LocalizationService extends Object
Centralized localization service that provides discoverability of registered LocalizationContext objects. This is designed to work with the ui sdk.
Since:
1
Version:
1
  • Method Details

    • mount

      public void mount(String path, LocalizationContext ctx)
      Register a LocalizationContext with the service. This will make the context available in the VFS and discoverable via associated endpoints. Contexts must be unmounted in order for them to be removed from the VFS and garbage collected.
      Parameters:
      path - a unique path used to mount the context within the VFS
      ctx - the context to mount
      Since:
      1
    • unmount

      public void unmount(LocalizationContext ctx)
      Unregister a LocalizationContext from the service. This will unmount the context and allow it to be garbage collected.
      Parameters:
      ctx - the context to unmount
      Since:
      1
    • unmount

      public void unmount(String path)
      Unregister a LocalizationContext with the specified mount path.
      Parameters:
      path - the path used to mount the context
      Since:
      1