Package org.marketcetera.util.log
Interface I18NBoundMessage
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
I18NBoundMessage0P,I18NBoundMessage1P,I18NBoundMessage2P,I18NBoundMessage3P,I18NBoundMessage4P,I18NBoundMessage5P,I18NBoundMessage6P,I18NBoundMessageBase,I18NBoundMessageNP,I18NMessage0P
public interface I18NBoundMessage extends Serializable
A bound message, representing the combination of anI18NMessageand its parameters, if any.- Since:
- 0.5.0
- Version:
- $Id: I18NBoundMessage.java 17760 2018-11-14 14:54:11Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Field Summary
Fields Modifier and Type Field Description static Serializable[]EMPTY_PARAMSAn empty parameter list for a bound message.
-
Method Summary
-
-
-
Field Detail
-
EMPTY_PARAMS
static final Serializable[] EMPTY_PARAMS
An empty parameter list for a bound message.
-
-
Method Detail
-
getLoggerProxy
I18NLoggerProxy getLoggerProxy()
Returns the logger proxy that can log the receiver.- Returns:
- The proxy.
-
getMessageProvider
I18NMessageProvider getMessageProvider()
Returns the message provider that can map the receiver.- Returns:
- The message provider.
-
getMessage
I18NMessage getMessage()
Returns the receiver's message.- Returns:
- The message.
-
getParams
Serializable[] getParams()
Returns the receiver's parameters.- Returns:
- The parameters.
-
getParamsAsObjects
Object[] getParamsAsObjects()
Returns the receiver's parameters as objects.- Returns:
- The parameters.
-
getText
String getText(Locale locale)
A convenience method forI18NMessageProvider.getText(Locale,I18NMessage,Object...).- Parameters:
locale- aLocalevalue- Returns:
- a
Stringvalue
-
getText
String getText()
A convenience method forI18NMessageProvider.getText(I18NMessage,Object...).- Returns:
- a
Stringvalue
-
error
void error(Object category, Throwable throwable)
A convenience method forI18NLoggerProxy.error(Object,Throwable,I18NMessage,Object...).- Parameters:
category- anObjectvaluethrowable- aThrowablevalue
-
error
void error(Object category)
A convenience method forI18NLoggerProxy.error(Object,I18NMessage,Object...).- Parameters:
category- anObjectvalue
-
warn
void warn(Object category, Throwable throwable)
A convenience method forI18NLoggerProxy.warn(Object,Throwable,I18NMessage,Object...).- Parameters:
category- anObjectvaluethrowable- aThrowablevalue
-
warn
void warn(Object category)
A convenience method forI18NLoggerProxy.warn(Object,I18NMessage,Object...).- Parameters:
category- anObjectvalue
-
info
void info(Object category, Throwable throwable)
A convenience method forI18NLoggerProxy.info(Object,Throwable,I18NMessage,Object...).- Parameters:
category- anObjectvaluethrowable- aThrowablevalue
-
info
void info(Object category)
A convenience method forI18NLoggerProxy.info(Object,I18NMessage,Object...).- Parameters:
category- anObjectvalue
-
debug
void debug(Object category, Throwable throwable)
A convenience method forI18NLoggerProxy.debug(Object,Throwable,I18NMessage,Object...).- Parameters:
category- anObjectvaluethrowable- aThrowablevalue
-
debug
void debug(Object category)
A convenience method forI18NLoggerProxy.debug(Object,I18NMessage,Object...).- Parameters:
category- anObjectvalue
-
trace
void trace(Object category, Throwable throwable)
A convenience method forI18NLoggerProxy.trace(Object,Throwable,I18NMessage,Object...).- Parameters:
category- anObjectvaluethrowable- aThrowablevalue
-
trace
void trace(Object category)
A convenience method forI18NLoggerProxy.trace(Object,I18NMessage,Object...).- Parameters:
category- anObjectvalue
-
-