Package net.sf.jasperreports.engine.util
Class DefaultedMessageProvider
- java.lang.Object
-
- net.sf.jasperreports.engine.util.DefaultedMessageProvider
-
- All Implemented Interfaces:
MessageProvider
public class DefaultedMessageProvider extends Object implements MessageProvider
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description DefaultedMessageProvider(MessageProvider wrapped, Properties defaultsMessages)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage(String code, Object[] args, Locale locale)
protected static Properties
loadResourceProperties(String defaultsResource)
static MessageProvider
wrap(MessageProvider wrapped, String defaultsResource)
-
-
-
Constructor Detail
-
DefaultedMessageProvider
public DefaultedMessageProvider(MessageProvider wrapped, Properties defaultsMessages)
-
-
Method Detail
-
wrap
public static MessageProvider wrap(MessageProvider wrapped, String defaultsResource)
-
loadResourceProperties
protected static Properties loadResourceProperties(String defaultsResource)
-
getMessage
public String getMessage(String code, Object[] args, Locale locale)
- Specified by:
getMessage
in interfaceMessageProvider
-
-