|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface I18nServiceSelector
Internationalization service selector. This service allows to simplify the
selection of the correct I18nService, when several are exposed.
It can also select the I18nService by using a regression algorithm
on the locale.
| Method Summary | |
|---|---|
I18nService |
getI18nService(java.lang.String resourceName,
java.util.Locale locale)
Gets a i18n service localizing the given resource for the given locale. |
I18nService |
getI18nService(java.lang.String resourceName,
java.util.Locale locale,
boolean includeParents)
Gets a i18n service localizing the given resource for the given locale. |
I18nService |
getI18nServiceForCurrentLocale(java.lang.String resourceName)
Gets a i18n service localizing the given resource for the current locale. |
I18nService |
getI18nServiceForCurrentLocale(java.lang.String resourceName,
boolean includeParents)
Gets a i18n service localizing the given resource for the current locale. |
I18nService[] |
getI18nServices(java.util.Locale locale)
Gets all I18nService providers supporting the given locale. |
I18nService[] |
getI18nServices(java.util.Locale locale,
boolean includeParents)
Gets all I18nService providers supporting the given locale. |
I18nService[] |
getI18nServices(java.lang.String resourceName)
Gets all I18nService providers localizing the
given resource name. |
I18nService[] |
getI18nServices(java.lang.String resourceName,
java.util.Locale locale)
Gets all I18nService providers localizing the
given resource name and supporting the given locale. |
I18nService[] |
getI18nServices(java.lang.String resourceName,
java.util.Locale locale,
boolean includeParents)
Gets all I18nService providers localizing the
given resource name and supporting the given locale. |
I18nService[] |
getI18nServicesForCurrentLocale(java.lang.String resourceName)
Gets all I18nService providers localizing the
given resource name and supporting the current locale. |
I18nService[] |
getI18nServicesForCurrentLocale(java.lang.String resourceName,
boolean includeParents)
Gets all I18nService providers localizing the
given resource name and supporting the current locale. |
| Method Detail |
|---|
I18nService[] getI18nServices(java.lang.String resourceName)
I18nService providers localizing the
given resource name.
resourceName - the resource name
I18nServiceI18nService[] getI18nServicesForCurrentLocale(java.lang.String resourceName)
I18nService providers localizing the
given resource name and supporting the current locale.
This methods applies a strict locale matching.
resourceName - the resource name
I18nService
I18nService[] getI18nServicesForCurrentLocale(java.lang.String resourceName,
boolean includeParents)
I18nService providers localizing the
given resource name and supporting the current locale.
According to includeParents, the result
will contain also service supporting parent locales.
- Parameters:
resourceName - the resource nameincludeParents - does the result set of services must include
parent locale or not.
- Returns:
- the array of
I18nService
I18nService[] getI18nServices(java.lang.String resourceName,
java.util.Locale locale)
I18nService providers localizing the
given resource name and supporting the given locale.
This methods applies a strict locale matching.
resourceName - the resource namelocale - the locale
I18nService
I18nService[] getI18nServices(java.lang.String resourceName,
java.util.Locale locale,
boolean includeParents)
I18nService providers localizing the
given resource name and supporting the given locale.
According to includeParents, the result
will contain also service supporting parent locales.
- Parameters:
resourceName - the resource namelocale - the localeincludeParents - does the result set of services must include
parent locale or not
- Returns:
- the array of
I18nService
I18nService[] getI18nServices(java.util.Locale locale)
I18nService providers supporting the given locale.
This methods applies a strict locale matching.
locale - the locale
I18nService
I18nService[] getI18nServices(java.util.Locale locale,
boolean includeParents)
I18nService providers supporting the given locale.
According to includeParents, the result
will contain also service supporting parent locales.
- Parameters:
locale - the localeincludeParents - does the result set of services must include
parent locale or not
- Returns:
- the array of
I18nService
I18nService getI18nServiceForCurrentLocale(java.lang.String resourceName)
resourceName - the resource name
I18nService or null if not matching
service found.
I18nService getI18nService(java.lang.String resourceName,
java.util.Locale locale)
resourceName - the resource namelocale - the locale
I18nService or null if not matching
service found.
I18nService getI18nServiceForCurrentLocale(java.lang.String resourceName,
boolean includeParents)
resourceName - the resource nameincludeParents - does the returned service can be a parent locale.
I18nService or null if not matching
service found.
I18nService getI18nService(java.lang.String resourceName,
java.util.Locale locale,
boolean includeParents)
resourceName - the resource namelocale - the localeincludeParents - does the returned service can be a parent locale.
I18nService or null if not matching
service found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||