Class LocalizationManager

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.api.restartable.Restartable
nl.pim16aap2.animatedarchitecture.core.localization.LocalizationManager
All Implemented Interfaces:
IRestartable

@Singleton public final class LocalizationManager extends Restartable
Represents a manager for the localization system.
  • Constructor Details

    • LocalizationManager

      @Inject public LocalizationManager(RestartableHolder restartableHolder, @Named("localizationBaseDir") Path baseDir, @Named("localizationBaseName") String baseName, IConfig config)
  • Method Details

    • addResources

      public void addResources(Path path, @Nullable @Nullable String baseName)
    • addResources

      public void addResources(List<Path> paths)
    • addResourcesFromClass

      public void addResourcesFromClass(Class<?> clz, @Nullable @Nullable String baseName)
    • addResourcesFromClass

      public void addResourcesFromClass(List<Class<?>> classes)
    • initialize

      public void initialize()
      Description copied from interface: IRestartable
      Handles the initialization.
      Specified by:
      initialize in interface IRestartable
    • shutDown

      public void shutDown()
      Description copied from interface: IRestartable
      Handles a shutdown.
      Specified by:
      shutDown in interface IRestartable
    • getLocalizer

      public ILocalizer getLocalizer()
      Gets the ILocalizer managed by this LocalizationManager.
      Returns:
      The ILocalizer managed by this LocalizationManager.