You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2006/10/16 23:03:44 UTC

svn commit: r464667 - in /incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket: Application.java protocol/http/WebApplication.java

Author: ehillenius
Date: Mon Oct 16 14:03:42 2006
New Revision: 464667

URL: http://svn.apache.org/viewvc?view=rev&rev=464667
Log:
hid logstarted

Modified:
    incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Application.java
    incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java

Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Application.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Application.java?view=diff&rev=464667&r1=464666&r2=464667
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Application.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Application.java Mon Oct 16 14:03:42 2006
@@ -801,22 +801,6 @@
 	}
 
 	/**
-	 * Log that this application is started.
-	 */
-	protected void logStarted()
-	{
-		String version = getFrameworkSettings().getVersion();
-		StringBuffer b = new StringBuffer();
-		b.append("[").append(getName()).append("] Started Wicket ");
-		if (!"n/a".equals(version))
-		{
-			b.append("version ").append(version).append(" ");
-		}
-		b.append("in ").append(getConfigurationType()).append(" mode");
-		log.info(b.toString());
-	}
-
-	/**
 	 * Creates a new session facade. Is called once per application, and is
 	 * typically not something clients reimplement.
 	 * 

Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java?view=diff&rev=464667&r1=464666&r2=464667
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java Mon Oct 16 14:03:42 2006
@@ -25,6 +25,9 @@
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
 import wicket.Application;
 import wicket.IRequestCycleFactory;
 import wicket.IRequestTarget;
@@ -71,11 +74,11 @@
  * init() method. For example:
  * 
  * <pre>
- *             public void init()
- *             {
- *                 String webXMLParameter = getWicketServlet().getInitParameter(&quot;myWebXMLParameter&quot;);
- *                 URL schedulersConfig = getWicketServlet().getServletContext().getResource(&quot;/WEB-INF/schedulers.xml&quot;);
- *                 ...
+ *              public void init()
+ *              {
+ *                  String webXMLParameter = getWicketServlet().getInitParameter(&quot;myWebXMLParameter&quot;);
+ *                  URL schedulersConfig = getWicketServlet().getServletContext().getResource(&quot;/WEB-INF/schedulers.xml&quot;);
+ *                  ...
  * </pre>
  * 
  * @see WicketServlet
@@ -97,6 +100,9 @@
  */
 public abstract class WebApplication extends Application implements ISessionFactory
 {
+	/** Log. */
+	private static final Log log = LogFactory.getLog(WebApplication.class);
+
 	/**
 	 * The cached application key. Will be set in
 	 * {@link #setWicketServlet(WicketServlet)} based on the servlet context.
@@ -540,14 +546,6 @@
 	}
 
 	/**
-	 * @see wicket.Application#logStarted()
-	 */
-	protected void logStarted()
-	{
-		super.logStarted();
-	}
-
-	/**
 	 * May be replaced by subclasses which whishes to uses there own
 	 * implementation of IRequestCycleProcessor
 	 * 
@@ -668,6 +666,22 @@
 		webSession.initForRequest();
 
 		return webSession;
+	}
+
+	/**
+	 * Log that this application is started.
+	 */
+	final void logStarted()
+	{
+		String version = getFrameworkSettings().getVersion();
+		StringBuffer b = new StringBuffer();
+		b.append("[").append(getName()).append("] Started Wicket ");
+		if (!"n/a".equals(version))
+		{
+			b.append("version ").append(version).append(" ");
+		}
+		b.append("in ").append(getConfigurationType()).append(" mode");
+		log.info(b.toString());
 	}
 
 	/**