Package de.xima.fc.i18n
Class CommonBundleLocator
- java.lang.Object
 - 
- de.xima.fc.i18n.CommonBundleLocator
 
 
- 
- All Implemented Interfaces:
 IResourceBundleLocator
@Immutable public final class CommonBundleLocator extends Object implements IResourceBundleLocator
A Hibernate bean validation API resource bundle locator for thexima-common-localizationsresource bundle.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static IResourceBundleLocatorINSTANCEAn immutable instance of this bundle locator. 
- 
Constructor Summary
Constructors Constructor Description CommonBundleLocator() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceBundlegetResourceBundle(Locale locale)Returns a resource bundle for the given locale. 
 - 
 
- 
- 
Field Detail
- 
INSTANCE
public static final IResourceBundleLocator INSTANCE
An immutable instance of this bundle locator. 
 - 
 
- 
Method Detail
- 
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
Description copied from interface:IResourceBundleLocatorReturns a resource bundle for the given locale.- Specified by:
 getResourceBundlein interfaceIResourceBundleLocator- Parameters:
 locale- A locale, for which a resource bundle shall be retrieved. Must not benull.- Returns:
 - A resource bundle for the given locale. May be 
null, if no such bundle exists. 
 
 - 
 
 -