/** * Gets the instance for a given package. * @param packageName the package for which we want a bundle * @return I18n object */ public static I18n getInstance(final String packageName) { return getInstance(packageName, Thread.currentThread().getContextClassLoader()); }
/** * Gets the instance for a given class. * @param c the class for which we want a bundle * @param cl the classloader used to load bundle * @return I18n object */ public static I18n getInstance(final Class<?> c, final ClassLoader cl) { return getInstance(c.getPackage().getName(), cl); }
/** * Gets the instance for a given class. * @param c the class for which we want a bundle * @return I18n object */ public static I18n getInstance(final Class<?> c) { return getInstance(c.getPackage().getName(), c.getClassLoader()); }