Class DynamicResourceBundleHolder
- java.lang.Object
-
- com.oracle.cloud.baremetal.jenkins.DynamicResourceBundleHolder
-
public class DynamicResourceBundleHolder extends Object
An alternative toResourceBundleHolderthat 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 Stringformat(String key, Object... args)Formats a resource specified by the given key by using the default localestatic DynamicResourceBundleHolderget(Class<?> owner, String shortName)Returns aResourceBundleHolderfor the given class.
-
-
-
Method Detail
-
get
public static DynamicResourceBundleHolder get(Class<?> owner, String shortName)
Returns aResourceBundleHolderfor the given class.- Parameters:
owner- the resource bundle ownershortName- the resource bundle name relative to the owner- Returns:
- a
ResourceBundleHolderfor the given class
-
-