/** * Factory method to create a new {@link Message} instance that is filled with the formatted * message with id <code>code</code> from the resource bundle <code>bundlePath</code>. * * @param bundlePath complete path to the resource bundle for lookup * @param code numeric code of the message * @param arg * @see #getBundlePath(String) */ protected Message createMessage(String bundlePath, int code, Object arg) { return createMessage(bundlePath, code, new Object[] {arg}); }
/** * Factory method to create a new {@link Message} instance that is filled with the formatted * message with id <code>code</code> from the resource bundle <code>bundlePath</code>. * * @param bundlePath complete path to the resource bundle for lookup * @param code numeric code of the message * @param arg1 * @param arg2 * @see #getBundlePath(String) */ protected Message createMessage(String bundlePath, int code, Object arg1, Object arg2) { return createMessage(bundlePath, code, new Object[] {arg1, arg2}); }
/** * Factory method to create a new {@link Message} instance that is filled with the formatted * message with id <code>code</code> from the resource bundle <code>bundlePath</code>. * * @param bundlePath complete path to the resource bundle for lookup * @param code numeric code of the message * @param arg1 * @param arg2 * @param arg3 * @see #getBundlePath(String) */ protected Message createMessage(String bundlePath, int code, Object arg1, Object arg2, Object arg3) { return createMessage(bundlePath, code, new Object[] {arg1, arg2, arg3}); }