Interface ModuleHook

  • All Superinterfaces:
    java.util.spi.ResourceBundleProvider
    All Known Implementing Classes:
    Hook

    public interface ModuleHook
    extends java.util.spi.ResourceBundleProvider
    Interface to determine the module hierarchy.
    Provides a hook to access resources from within a module.

    Each module must include exactly one such an 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
    • Method Summary

      • Methods inherited from interface java.util.spi.ResourceBundleProvider

        getBundle