public class ResourceBundleResolver extends LocaleAwareResolver
ResourceBundle resolver. Unlike ResourceBundleLambda this
resolver is not limited to String-based values. However keep in mind that
resource bundle keys cannot contain dots.ResourceBundle,
ResourceBundleLambdalocaleSupportBUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
ResourceBundleResolver(String baseName) |
ResourceBundleResolver(String baseName,
int priority) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority() |
Object |
resolve(Object contextObject,
String name)
Resolve the value from specified context object and name.
|
getCurrentLocale, initgetConfigurationKeys, toStringpublic ResourceBundleResolver(String baseName)
baseName - The base name of the resource bundlepublic ResourceBundleResolver(String baseName, int priority)
baseName - The base name of the resource bundlepriority - public Object resolve(Object contextObject, String name)
Resolvernull in case of the resolver is not capable
of resolving it.contextObject - The context object may be nullname - The name (part of the key) is never nullnullpublic int getPriority()
Copyright © 2013. All Rights Reserved.