Author: manaRH
Date: 2012-06-09 14:11:00 -0400 (Sat, 09 Jun 2012)
New Revision: 14881
Modified:
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockRequestDispatcher.java
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockViewHandler.java
Log:
JBSEAM-4990 fixed usage of proper logger
Modified:
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockRequestDispatcher.java
===================================================================
---
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockRequestDispatcher.java 2012-06-08
08:42:42 UTC (rev 14880)
+++
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockRequestDispatcher.java 2012-06-09
18:11:00 UTC (rev 14881)
@@ -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/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockViewHandler.java
===================================================================
---
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockViewHandler.java 2012-06-08
08:42:42 UTC (rev 14880)
+++
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockViewHandler.java 2012-06-09
18:11:00 UTC (rev 14881)
@@ -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) {
Show replies by date