Class LocalizationManager
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.api.restartable.Restartable
nl.pim16aap2.animatedarchitecture.core.localization.LocalizationManager
- All Implemented Interfaces:
IRestartable
Represents a manager for the localization system.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizationManager(RestartableHolder restartableHolder, Path baseDir, String baseName, IConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResources(Path path, @Nullable String baseName) voidaddResources(List<Path> paths) voidaddResourcesFromClass(Class<?> clz, @Nullable String baseName) voidaddResourcesFromClass(List<Class<?>> classes) Gets theILocalizermanaged by thisLocalizationManager.voidHandles the initialization.voidshutDown()Handles a shutdown.
-
Constructor Details
-
LocalizationManager
@Inject public LocalizationManager(RestartableHolder restartableHolder, @Named("localizationBaseDir") Path baseDir, @Named("localizationBaseName") String baseName, IConfig config)
-
-
Method Details
-
addResources
-
addResources
-
addResourcesFromClass
-
addResourcesFromClass
-
initialize
public void initialize()Description copied from interface:IRestartableHandles the initialization.- Specified by:
initializein interfaceIRestartable
-
shutDown
public void shutDown()Description copied from interface:IRestartableHandles a shutdown.- Specified by:
shutDownin interfaceIRestartable
-
getLocalizer
Gets theILocalizermanaged by thisLocalizationManager.- Returns:
- The ILocalizer managed by this LocalizationManager.
-