-
- All Superinterfaces:
java.util.spi.ResourceBundleProvider
- All Known Implementing Classes:
Hook
public interface ModuleHook extends java.util.spi.ResourceBundleProviderInterface to determine the module hierarchy.
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 callerclass to determine the caller module.- Author:
- harald