Class DefaultResourceBundleFactory

  • All Implemented Interfaces:
    Serializable, ResourceBundleFactory

    public class DefaultResourceBundleFactory
    extends Object
    implements ResourceBundleFactory
    A default implementation of the ResourceBundleFactory, that creates resource bundles using the specified locale.

    If not defined otherwise, this implementation uses Locale.getDefault() as Locale.

    Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultResourceBundleFactory

        public DefaultResourceBundleFactory()
        Creates a new DefaultResourceBundleFactory using the system's default locale as factory locale.
      • DefaultResourceBundleFactory

        public DefaultResourceBundleFactory​(Locale locale)
        Creates a new DefaultResourceBundleFactory using the specified locale as factory locale.
        locale - the Locale instance that should be used when creating ResourceBundles.
        NullPointerException - if the given Locale is null.
      • DefaultResourceBundleFactory

        public DefaultResourceBundleFactory​(Locale locale,
                                            TimeZone timeZone)