Example usage for org.apache.commons.lang3.text ExtendedMessageFormat ExtendedMessageFormat

List of usage examples for org.apache.commons.lang3.text ExtendedMessageFormat ExtendedMessageFormat

Introduction

In this page you can find the example usage for org.apache.commons.lang3.text ExtendedMessageFormat ExtendedMessageFormat.

Prototype

public ExtendedMessageFormat(final String pattern, final Locale locale,
        final Map<String, ? extends FormatFactory> registry) 

Source Link

Document

Create a new ExtendedMessageFormat.

Usage

From source file:com.vityuk.ginger.provider.format.DefaultMessageFormatFactory.java

@Override
public MessageFormat create(Locale locale, String format) {
    checkNotNull(locale);/*w  w w  .  j a va  2 s. c om*/
    checkNotNull(format);
    return new ExtendedMessageFormat(format, locale, formatFactoryRegistry);
}

From source file:org.efaps.util.MsgFormat.java

/**
 * @param _pattern pattern to apply/*from  w  ww .  j  a va2s  .com*/
 * @param _locale Locale
 * @return ExtendedMessageFormat
 * @throws EFapsException on error
 */
public static ExtendedMessageFormat getFormat(final String _pattern, final Locale _locale)
        throws EFapsException {
    return new ExtendedMessageFormat(_pattern, _locale, get().registry);
}