net.lightoze.gwt.i18n.server.MessagesWithLookup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-i18n-server Show documentation
Show all versions of gwt-i18n-server Show documentation
A project to make GWT localization available on server side.
package net.lightoze.gwt.i18n.server;
import com.google.gwt.i18n.client.Messages;
import java.util.MissingResourceException;
/**
* Like {@link com.google.gwt.i18n.client.ConstantsWithLookup}, but for {@link Messages} interface.
*
* Supported only on server side.
*
* @author Vladimir Kulev
*/
public interface MessagesWithLookup extends Messages {
/**
* Look up String
by method name.
*
* Supported only on server side.
*
* @param methodName method name
* @param args method arguments
* @return String returned by method
* @throws java.util.MissingResourceException if methodName is not valid
*/
String getString(String methodName, Object... args) throws MissingResourceException;
}