public interface Localization
Localization
across multiple JAR archives. Even the use of VFS listing
does not work since you need a special class loader per JAR file. Getting the available
localizations for example would mean to permutate all combinations of locales which cannot
be done in practice.
The way out is the service provider API allowing any localization JAR file to declare the
contained implementations of the Localization
interface (providing the locale).
The service providers are well-known before any classes are loaded from the JARs. A listing
functionality simply has to read the providers for the service (here localization).
Locale getLocale()
Copyright © 2005-2023 Leisenfels GmbH. All rights reserved.