[seam-commits] Seam SVN: r11969 - branches/community/Seam_2_2/src/main/org/jboss/seam/international.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Jan 18 10:15:42 EST 2010
Author: manaRH
Date: 2010-01-18 10:15:41 -0500 (Mon, 18 Jan 2010)
New Revision: 11969
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/international/LocaleConfig.java
Log:
JBSEAM-4401
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/international/LocaleConfig.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/international/LocaleConfig.java 2010-01-16 22:13:59 UTC (rev 11968)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/international/LocaleConfig.java 2010-01-18 15:15:41 UTC (rev 11969)
@@ -20,6 +20,8 @@
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Startup;
import org.jboss.seam.annotations.intercept.BypassInterceptors;
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
import org.jboss.seam.util.Strings;
/**
@@ -48,6 +50,8 @@
private String defaultLocale;
private List<String> supportedLocales;
+
+ private static final LogProvider log = Logging.getLogProvider(LocaleConfig.class);
@Create
public void initLocaleConfig()
@@ -86,6 +90,7 @@
public void setDefaultLocale(String defaultLocale)
{
this.defaultLocale = defaultLocale;
+ log.debug("Default locale was set to " + this.defaultLocale);
}
public List<String> getSupportedLocales()
@@ -96,6 +101,7 @@
public void setSupportedLocales(List<String> supportedLocales)
{
this.supportedLocales = supportedLocales;
+ log.debug("Supported locales are " + this.supportedLocales);
}
public static LocaleConfig instance()
@@ -138,6 +144,7 @@
}
catch (IllegalStateException e)
{
+ log.warn("JSF is not properly initialized, see http://jira.jboss.org/jira/browse/JBSEAM-4401");
// just in case, for units and the like
// if we can't do it, it just wan't meant to be
return null;
More information about the seam-commits
mailing list