[seam-commits] Seam SVN: r14882 - branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Sat Jun 9 14:13:25 EDT 2012
Author: manaRH
Date: 2012-06-09 14:13:25 -0400 (Sat, 09 Jun 2012)
New Revision: 14882
Modified:
branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock/MockRequestDispatcher.java
branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock/MockViewHandler.java
Log:
fixed wrong usage of
commons-logging
instead of Seam log
layer - https://bugzilla.redhat.com/show_bug.cgi?id=830233
Modified: branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock/MockRequestDispatcher.java
===================================================================
--- branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock/MockRequestDispatcher.java 2012-06-09 18:11:00 UTC (rev 14881)
+++ branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock/MockRequestDispatcher.java 2012-06-09 18:13:25 UTC (rev 14882)
@@ -16,14 +16,14 @@
package org.jboss.seam.mock;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
+
/**
* Mock implementation of the {@link javax.servlet.RequestDispatcher} interface.
* <p/>
@@ -37,8 +37,8 @@
public class MockRequestDispatcher implements RequestDispatcher
{
- private final Log logger = LogFactory.getLog(getClass());
-
+ private static final LogProvider logger = Logging.getLogProvider(MockRequestDispatcher.class);
+
private final String url;
Modified: branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock/MockViewHandler.java
===================================================================
--- branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock/MockViewHandler.java 2012-06-09 18:11:00 UTC (rev 14881)
+++ branches/enterprise/WFK-2_0/jboss-seam/src/main/java/org/jboss/seam/mock/MockViewHandler.java 2012-06-09 18:13:25 UTC (rev 14882)
@@ -8,13 +8,13 @@
import javax.faces.component.UIViewRoot;
import javax.faces.context.FacesContext;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
import org.jboss.seam.util.Strings;
public class MockViewHandler extends ViewHandler {
- private final Log logger = LogFactory.getLog(getClass());
+ private static final LogProvider logger = Logging.getLogProvider(MockViewHandler.class);
@Override
public Locale calculateLocale(FacesContext ctx) {
More information about the seam-commits
mailing list