de.smartics.resteasy.hypermedia.renderer.i18n
Class ResourceBundleI18nProvider

Package class diagram package ResourceBundleI18nProvider
java.lang.Object
  extended by de.smartics.resteasy.hypermedia.renderer.i18n.ResourceBundleI18nProvider
All Implemented Interfaces:
I18nProvider

@ApplicationScoped
public class ResourceBundleI18nProvider
     
     
extends Object
implements I18nProvider

A provider based on resource bundles.


Field Summary
static String DEFAULT_LOCATION
          The default location to search for link resource information.
static String SYSTEM_KEY
          The key the provider looks up the location to search for link resource information.
 
Constructor Summary
ResourceBundleI18nProvider()
           
 
Method Summary
 LocalizationProvider getProvider(Locale locale)
          Returns localized information for the specified locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_KEY

public static final String SYSTEM_KEY
The key the provider looks up the location to search for link resource information.

The value of this constant is "de.smartics.hypermedia.link".

Constant Field Value:
"de.smartics.hypermedia.link"

DEFAULT_LOCATION

public static final String DEFAULT_LOCATION
The default location to search for link resource information.

The value of this constant is "de/smartics/hypermedia/link".

Constant Field Value:
"de/smartics/hypermedia/link"
Constructor Detail

ResourceBundleI18nProvider

public ResourceBundleI18nProvider()
Method Detail

getProvider

public LocalizationProvider getProvider(Locale locale)
                                 throws NullPointerException
Description copied from interface: I18nProvider
Returns localized information for the specified locale.

Specified by:
getProvider in interface I18nProvider
Parameters:
locale - the locale for which resource information is requested.
Returns:
the requested localized information.
Throws:
NullPointerException - if locale is null.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.