Class LocalizationService
java.lang.Object
com.kosdev.kos.core.service.localization.LocalizationService
Centralized localization service that provides discoverability of
registered
LocalizationContext objects. This is designed to
work with the ui sdk.- Since:
- 1
- Version:
- 1
-
Method Summary
Modifier and TypeMethodDescriptionvoidmount(String path, LocalizationContext ctx) Register aLocalizationContextwith the service.voidUnregister aLocalizationContextfrom the service.voidUnregister aLocalizationContextwith the specified mount path.
-
Method Details
-
mount
Register aLocalizationContextwith 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 VFSctx- the context to mount- Since:
- 1
-
unmount
Unregister aLocalizationContextfrom the service. This will unmount the context and allow it to be garbage collected.- Parameters:
ctx- the context to unmount- Since:
- 1
-
unmount
Unregister aLocalizationContextwith the specified mount path.- Parameters:
path- the path used to mount the context- Since:
- 1
-