public static Localization defaultLocalizationFor ( Class < ? > iface ) { Map < String , String > defaultMessages = Maps . newHashMap ( ) ; for ( Method method : iface . getMethods ( ) ) { Message msg = method . getAnnotation ( Message . class ) ; if ( null != msg ) { defaultMessages . put ( method . getName ( ) , msg . message ( ) ) ; } } return new Localization ( iface , Locale . getDefault ( ) , defaultMessages ) ; }
Returns a localization value object describing the defaults specified in the