public class ServerI18NFactory extends Object
loggers and messages for the server. These factory
methods are used to create I18N objects that access the propery resource bundle for the server module (for example,
the ServerCommunicationsService server).| Constructor and Description |
|---|
ServerI18NFactory() |
| Modifier and Type | Method and Description |
|---|---|
static mazz.i18n.Logger |
getLogger(Class clazz)
Creates the logger and uses the
LoggerLocale. |
static mazz.i18n.Msg |
getMsg()
Creates a
Msg that uses the server module's resource bundle and the VM's default locale. |
static mazz.i18n.Msg |
getMsgWithLoggerLocale()
Creates a
Msg that uses the server module's resource bundle and LoggerLocale, which is used by
the loggers created by this class. |
public static mazz.i18n.Logger getLogger(Class clazz)
LoggerLocale.clazz - the class that owns the logger - identifies the resource bundlepublic static mazz.i18n.Msg getMsg()
Msg that uses the server module's resource bundle and the VM's default locale.public static mazz.i18n.Msg getMsgWithLoggerLocale()
Msg that uses the server module's resource bundle and LoggerLocale, which is used by
the loggers created by this class. This is useful if you want to set messages in
exceptions that are simply to be logged and not necessarily be bubbled up to a user interface.Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.