Class ResourceUtils


  • public final class ResourceUtils
    extends Object
    Resource utilities.
    Author:
    aherscu
    • Method Detail

      • get

        public static <T> T get​(Class<T> c10nInterface)
        Retrieves the resource associated with current locale.
        Parameters:
        c10nInterface - the resource interface
        Returns:
        the resource
      • getRootFor

        public static <T> T getRootFor​(Class<T> c10nInterface)
        Retrieves the resource associated with Locale.ROOT
        Parameters:
        c10nInterface - the resource interface
        Returns:
        the resource