Class ResourceBundleStringLookup

  • All Implemented Interfaces:
    StringLookup

    final class ResourceBundleStringLookup
    extends AbstractStringLookup
    Looks up keys from resource bundles.

    Looks up the value for a given key in the format "BundleName:BundleKey".

    For example: "com.domain.messages:MyKey".

    Since:
    1.3
    See Also:
    ResourceBundle
    • Constructor Detail

      • ResourceBundleStringLookup

        ResourceBundleStringLookup()
        Constructs a blank instance. This ctor is not private to allow Mockito spying.
      • ResourceBundleStringLookup

        ResourceBundleStringLookup​(String bundleName)
        Constructs an instance that only works for the given bundle.
        Parameters:
        bundleName - the name of the resource bundle from which we will look keys up.
        Since:
        1.5