Author: gseitz
Date: Mon May 19 14:02:54 2008
New Revision: 657975

URL: http://svn.apache.org/viewvc?rev=657975&view=rev
Log:
WICKET-1428: move initialization code from constructor to init()

Modified:
    
wicket/branches/wicket-1.3.x/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java

Modified: 
wicket/branches/wicket-1.3.x/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java?rev=657975&r1=657974&r2=657975&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java
 (original)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java
 Mon May 19 14:02:54 2008
@@ -28,16 +28,9 @@
 public class LinkomaticApplication extends WicketExampleApplication
 {
        /**
-        * Constructor
-        */
-       public LinkomaticApplication()
-       {
-               getSharedResources().add("cancelButton", new 
DefaultButtonImageResource("Cancel"));
-       }
-
-       /**
         * @see org.apache.wicket.Application#getHomePage()
         */
+       @Override
        public Class getHomePage()
        {
                return Home.class;
@@ -46,8 +39,10 @@
        /**
         * @see org.apache.wicket.protocol.http.WebApplication#init()
         */
+       @Override
        protected void init()
        {
+               getSharedResources().add("cancelButton", new 
DefaultButtonImageResource("Cancel"));
                // log host name and server time in the browser's status bar
                getRequestCycleSettings().addResponseFilter(new 
ServerHostNameAndTimeFilter());
        }


Reply via email to