/** Get a resource bundle in the same package as the provided class, * with the default locale/branding and the class' own classloader. * The usual style of invocation is {@link #getMessage(Class,String)} * or one of the other overloads taking message formats. * * @param clazz the class to take the package name from * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle(Class<?> clazz) throws MissingResourceException { String name = findName(clazz); return getBundle(name, Locale.getDefault(), clazz.getClassLoader()); }
/** Get a resource bundle in the same package as the provided class, * with the default locale and the class' own classloader. * This is the usual style of invocation. * * @param clazz the class to take the package name from * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle (Class clazz) throws MissingResourceException { String name = findName (clazz); return getBundle(name, Locale.getDefault(), clazz.getClassLoader()); }
/** Get a resource bundle in the same package as the provided class, * with the default locale and the class' own classloader. * This is the usual style of invocation. * * @param clazz the class to take the package name from * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle (Class clazz) throws MissingResourceException { String name = findName (clazz); return getBundle(name, Locale.getDefault(), clazz.getClassLoader()); }
/** Get a resource bundle in the same package as the provided class, * with the default locale/branding and the class' own classloader. * This is the usual style of invocation. * * @param clazz the class to take the package name from * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle(Class clazz) throws MissingResourceException { String name = findName(clazz); return getBundle(name, Locale.getDefault(), clazz.getClassLoader()); }
/** Get a resource bundle in the same package as the provided class, * with the default locale/branding and the class' own classloader. * The usual style of invocation is {@link #getMessage(Class,String)} * or one of the other overloads taking message formats. * * @param clazz the class to take the package name from * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle(Class<?> clazz) throws MissingResourceException { String name = findName(clazz); return getBundle(name, Locale.getDefault(), clazz.getClassLoader()); }