br.com.caelum.vraptor.converter.LocaleBasedTimeConverter Maven / Gradle / Ivy
package br.com.caelum.vraptor.converter;
import static com.google.common.base.Strings.isNullOrEmpty;
import java.sql.Time;
import java.text.DateFormat;
import java.text.MessageFormat;
import java.text.ParseException;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.regex.Pattern;
import br.com.caelum.vraptor.Convert;
import br.com.caelum.vraptor.Converter;
import br.com.caelum.vraptor.core.Localization;
import br.com.caelum.vraptor.ioc.RequestScoped;
@Convert(Time.class)
@RequestScoped
public class LocaleBasedTimeConverter implements Converter