- All Superinterfaces:
ResourceBundleProvider
Interface to determine the module hierarchy.
Provides a hook to access resources from within a module.
Provides a hook to access resources from within a module.
Each module must include exactly one such implementation and provide it via module-info.
Since ModuleHook extends ResourceBundleProvider
, all classes must implement the following
method as follows:
@Override public ResourceBundle getBundle(String baseName, Locale locale) { return ResourceBundle.getBundle(baseName, locale); }Notice: it must be implemented in the hook and not an abstract super class because it is used by the BundleFactory to access the bundles from within the framework and ResourceBundle uses the caller class to determine the caller module.
- Author:
- harald
-
Method Summary
Methods inherited from interface java.util.spi.ResourceBundleProvider
getBundle