public class UserMessageRef extends UserMessage
The raw text is looked up by calling:
ResourceBundle resources; if (this.classLoader == null) resources = ResourceBundle.getBundle(this.bundleBaseName, aLocale); else resources = ResourceBundle.getBundle(this.bundleBaseName, aLocale, this.classLoader); return resources.getString(this.messageKey);
ResourceBundle
,
MessageFormat
Constructor and Description |
---|
UserMessageRef(Severity severity,
String aMessageKey,
String bundleBaseName,
Object[] params) |
UserMessageRef(Severity severity,
String aMessageKey,
String bundleBaseName,
Object[] params,
ClassLoader bundleClassLoader) |
UserMessageRef(String aMessageKey,
Throwable aThrowable,
String bundleBaseName,
Object[] params) |
UserMessageRef(String aMessageKey,
Throwable aThrowable,
String bundleBaseName,
Object[] params,
ClassLoader bundleClassLoader) |
Modifier and Type | Method and Description |
---|---|
String |
getBundleBaseName()
Returns the qualified name of the bundle.
|
ClassLoader |
getClassLoader()
Returns the class loader used for finding the bundle, if specified.
|
String |
getInternalId()
Returns a specific identifier for logging and technical auditing.
|
String |
getMessageKey()
Returns the identifier of the message in the bundle.
|
String |
toString() |
createError, createError, createFatal, createFatal, createInfo, createWarning, formatMessage, getSeverity, getThrowable, isError, isFatal, isInfo, isWarning, setSeverity, setSeverity
public UserMessageRef(String aMessageKey, Throwable aThrowable, String bundleBaseName, Object[] params, ClassLoader bundleClassLoader)
public UserMessageRef(String aMessageKey, Throwable aThrowable, String bundleBaseName, Object[] params)
public UserMessageRef(Severity severity, String aMessageKey, String bundleBaseName, Object[] params, ClassLoader bundleClassLoader)
public final String getInternalId()
UserMessage
null
if this message has no identifier (this
is the case for a UserMessageString
).getInternalId
in class UserMessage
public final String getBundleBaseName()
public final ClassLoader getClassLoader()
public final String getMessageKey()