Class DynamicResourceBundleHolder
java.lang.Object
com.oracle.cloud.baremetal.jenkins.DynamicResourceBundleHolder
An alternative to
ResourceBundleHolder that does not require a
statically generated class with the same name as the properties file.-
Method Summary
-
Method Details
-
get
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
-
format
Formats a resource specified by the given key by using the default locale- Parameters:
key- keyargs- object(s) to format- Returns:
- the formatted string
-