Top Description Fields Constructors Methods
org.hibernate.validator.resourceloading

public abstract Class DelegatingResourceBundleLocator

extends Object
implements ResourceBundleLocator
Class Inheritance
All Implemented Interfaces
org.hibernate.validator.spi.resourceloading.ResourceBundleLocator
Known Direct Subclasses
org.hibernate.validator.resourceloading.AggregateResourceBundleLocator, org.hibernate.validator.resourceloading.CachingResourceBundleLocator
Imports
java.util.Locale, .ResourceBundle, org.hibernate.validator.spi.resourceloading.ResourceBundleLocator

Abstract base for all ResourceBundleLocator implementations, that wish to delegate to some other locator.
Author
Gunnar Morling

Field Summary

Modifier and TypeField and Description
private final ResourceBundleLocator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ResourceBundle
getResourceBundle(Locale
A locale, for which a resource bundle shall be retrieved. Must not be null.
locale
)

Implements org.hibernate.validator.spi.resourceloading.ResourceBundleLocator.getResourceBundle.

Returns a resource bundle for the given locale.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final ResourceBundleLocator delegate

Constructor Detail

DelegatingResourceBundleLocatorback to summary
public DelegatingResourceBundleLocator(ResourceBundleLocator delegate)

Creates a new DelegatingResourceBundleLocator.

Parameters
delegate:ResourceBundleLocator

The delegate.

Method Detail

getResourceBundleback to summary
public ResourceBundle getResourceBundle(Locale locale)

Implements org.hibernate.validator.spi.resourceloading.ResourceBundleLocator.getResourceBundle.

Doc from org.hibernate.validator.spi.resourceloading.ResourceBundleLocator.getResourceBundle.

Returns a resource bundle for the given locale.

Parameters
locale:Locale

A locale, for which a resource bundle shall be retrieved. Must not be null.

Returns:ResourceBundle

A resource bundle for the given locale. May be null, if no such bundle exists.

Annotations
@Override