public class DynamicResourceBundleHolder extends Object
ResourceBundleHolder
that does not require a
statically generated class with the same name as the properties file.Modifier and Type | Method and Description |
---|---|
String |
format(String key,
Object... args)
Formats a resource specified by the given key by using the default locale
|
static DynamicResourceBundleHolder |
get(Class<?> owner,
String shortName)
Returns a
ResourceBundleHolder for the given class. |
public static DynamicResourceBundleHolder get(Class<?> owner, String shortName)
ResourceBundleHolder
for the given class.owner
- the resource bundle ownershortName
- the resource bundle name relative to the ownerResourceBundleHolder
for the given classCopyright © 2016–2018. All rights reserved.