Class DynamicResourceBundleHolder
- java.lang.Object
-
- com.oracle.cloud.baremetal.jenkins.DynamicResourceBundleHolder
-
public class DynamicResourceBundleHolder extends Object
An alternative toResourceBundleHolder
that does not require a statically generated class with the same name as the properties file.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(String key, Object... args)
Formats a resource specified by the given key by using the default localestatic DynamicResourceBundleHolder
get(Class<?> owner, String shortName)
Returns aResourceBundleHolder
for the given class.
-
-
-
Method Detail
-
get
public static DynamicResourceBundleHolder get(Class<?> owner, String shortName)
Returns aResourceBundleHolder
for the given class.- Parameters:
owner
- the resource bundle ownershortName
- the resource bundle name relative to the owner- Returns:
- a
ResourceBundleHolder
for the given class
-
-