Author: jcompagner
Date: Thu Apr 10 06:36:09 2008
New Revision: 646798
URL: http://svn.apache.org/viewvc?rev=646798&view=rev
Log:
generics WICKET-1506
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/AjaxApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/prototype/PrototypeApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authentication/MyAuthenticatedWebApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authorization/RolesApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/breadcrumb/BreadCrumbApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/captcha/CaptchaApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/compref/ComponentReferenceApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/customresourceloading/CustomResourceLoadingApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/dates/DatesApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/echo/EchoApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/encodings/EncodingsApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/frames/FramesApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guestbook/GuestBookApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guice/GuiceApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/HangmanApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hellobrowser/HelloBrowserApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/HelloWorldApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/images/ImagesApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/library/LibraryApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/navomatic/NavomaticApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/nested/NestedApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/niceurl/NiceUrlApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/portlet/menu/WicketExamplesMenuApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub/PubApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub2/PubApplication.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/signin2/SignIn2Application.java
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/template/TemplateApplication.java
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/AjaxApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/AjaxApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/AjaxApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/AjaxApplication.java
Thu Apr 10 06:36:09 2008
@@ -40,6 +40,7 @@
/**
* @see org.apache.wicket.examples.WicketExampleApplication#init()
*/
+ @Override
protected void init()
{
getResourceSettings().setThrowExceptionOnMissingResource(false);
@@ -70,7 +71,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Index> getHomePage()
{
return Index.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/prototype/PrototypeApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/prototype/PrototypeApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/prototype/PrototypeApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/prototype/PrototypeApplication.java
Thu Apr 10 06:36:09 2008
@@ -37,6 +37,7 @@
/**
* @see org.apache.wicket.examples.WicketExampleApplication#init()
*/
+ @Override
protected void init()
{
getResourceSettings().setThrowExceptionOnMissingResource(false);
@@ -46,7 +47,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Index> getHomePage()
{
return Index.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authentication/MyAuthenticatedWebApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authentication/MyAuthenticatedWebApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authentication/MyAuthenticatedWebApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authentication/MyAuthenticatedWebApplication.java
Thu Apr 10 06:36:09 2008
@@ -44,7 +44,7 @@
* @see org.apache.wicket.Application#getHomePage()
*/
@Override
- public Class getHomePage()
+ public Class<HomePage> getHomePage()
{
return HomePage.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authorization/RolesApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authorization/RolesApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authorization/RolesApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/authorization/RolesApplication.java
Thu Apr 10 06:36:09 2008
@@ -24,6 +24,7 @@
import org.apache.wicket.Session;
import
org.apache.wicket.authorization.strategies.role.RoleAuthorizationStrategy;
import
org.apache.wicket.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
+import org.apache.wicket.examples.ajax.prototype.Index;
import org.apache.wicket.examples.authorization.pages.AdminBookmarkablePage;
import org.apache.wicket.examples.authorization.pages.AdminInternalPage;
import org.apache.wicket.protocol.http.WebApplication;
@@ -54,7 +55,7 @@
* @see org.apache.wicket.Application#getHomePage()
*/
@Override
- public Class getHomePage()
+ public Class<Index> getHomePage()
{
return Index.class;
}
@@ -63,6 +64,7 @@
* @see
org.apache.wicket.protocol.http.WebApplication#newSession(org.apache.wicket.Request,
* org.apache.wicket.Response)
*/
+ @Override
public Session newSession(Request request, Response response)
{
return new RolesSession(this, request);
@@ -72,7 +74,7 @@
protected void init()
{
getSecuritySettings().setAuthorizationStrategy(
- new RoleAuthorizationStrategy(new
UserRolesAuthorizer()));
+ new RoleAuthorizationStrategy(new
UserRolesAuthorizer()));
MetaDataRoleAuthorizationStrategy.authorize(AdminBookmarkablePage.class,
"ADMIN");
MetaDataRoleAuthorizationStrategy.authorize(AdminInternalPage.class, "ADMIN");
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/breadcrumb/BreadCrumbApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/breadcrumb/BreadCrumbApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/breadcrumb/BreadCrumbApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/breadcrumb/BreadCrumbApplication.java
Thu Apr 10 06:36:09 2008
@@ -16,6 +16,7 @@
*/
package org.apache.wicket.examples.breadcrumb;
+import org.apache.wicket.examples.ajax.prototype.Index;
import org.apache.wicket.protocol.http.WebApplication;
/**
@@ -28,7 +29,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Index> getHomePage()
{
return Index.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/captcha/CaptchaApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/captcha/CaptchaApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/captcha/CaptchaApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/captcha/CaptchaApplication.java
Thu Apr 10 06:36:09 2008
@@ -35,7 +35,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Captcha> getHomePage()
{
return Captcha.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/compref/ComponentReferenceApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/compref/ComponentReferenceApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/compref/ComponentReferenceApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/compref/ComponentReferenceApplication.java
Thu Apr 10 06:36:09 2008
@@ -20,6 +20,7 @@
import java.util.List;
import org.apache.wicket.examples.WicketExampleApplication;
+import org.apache.wicket.examples.ajax.prototype.Index;
/**
@@ -57,6 +58,7 @@
/**
* @see org.apache.wicket.examples.WicketExampleApplication#init()
*/
+ @Override
protected void init()
{
getResourceSettings().setThrowExceptionOnMissingResource(false);
@@ -65,7 +67,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Index> getHomePage()
{
return Index.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/customresourceloading/CustomResourceLoadingApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/customresourceloading/CustomResourceLoadingApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/customresourceloading/CustomResourceLoadingApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/customresourceloading/CustomResourceLoadingApplication.java
Thu Apr 10 06:36:09 2008
@@ -23,6 +23,7 @@
import org.apache.commons.logging.LogFactory;
import org.apache.wicket.WicketRuntimeException;
import org.apache.wicket.examples.WicketExampleApplication;
+import org.apache.wicket.examples.ajax.prototype.Index;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.util.resource.IResourceStream;
import org.apache.wicket.util.resource.UrlResourceStream;
@@ -50,13 +51,14 @@
* @see
org.apache.wicket.util.resource.locator.ResourceStreamLocator#locate(java.lang.Class,
* java.lang.String)
*/
+ @Override
public IResourceStream locate(Class clazz, String path)
{
// Log attempt
if (log.isDebugEnabled())
{
log.debug("Attempting to locate resource '" +
path +
- "' using classloader the
servlet context");
+ "' using classloader the servlet
context");
}
String location;
@@ -105,7 +107,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Index> getHomePage()
{
return Index.class;
}
@@ -113,6 +116,7 @@
/**
* @see WebApplication#init()
*/
+ @Override
protected void init()
{
// instruct the application to use our custom resource stream
locator
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/dates/DatesApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/dates/DatesApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/dates/DatesApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/dates/DatesApplication.java
Thu Apr 10 06:36:09 2008
@@ -33,7 +33,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class< ? > getHomePage()
+ @Override
+ public Class<DatesPage> getHomePage()
{
return DatesPage.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/echo/EchoApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/echo/EchoApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/echo/EchoApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/echo/EchoApplication.java
Thu Apr 10 06:36:09 2008
@@ -36,7 +36,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Echo> getHomePage()
{
return Echo.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/encodings/EncodingsApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/encodings/EncodingsApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/encodings/EncodingsApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/encodings/EncodingsApplication.java
Thu Apr 10 06:36:09 2008
@@ -36,7 +36,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputApplication.java
Thu Apr 10 06:36:09 2008
@@ -53,7 +53,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<FormInput> getHomePage()
{
return FormInput.class;
}
@@ -77,6 +78,7 @@
/**
* @see org.apache.wicket.protocol.http.WebApplication#init()
*/
+ @Override
protected void init()
{
getResourceSettings().setThrowExceptionOnMissingResource(false);
@@ -96,7 +98,7 @@
DefaultButtonImageResource imgSaveJa = new
DefaultButtonImageResource("\u4fdd\u5b58");
imgSaveJa.setFont(fontJa);
DefaultButtonImageResource imgResetJa = new
DefaultButtonImageResource(
- "\u30ea\u30bb\u30c3\u30c8");
+ "\u30ea\u30bb\u30c3\u30c8");
imgResetJa.setFont(fontJa);
sharedResources.add("save", Locale.JAPANESE, imgSaveJa);
sharedResources.add("reset", Locale.JAPANESE, imgResetJa);
@@ -105,10 +107,10 @@
Font fontFa = new Font("Serif", Font.BOLD, 16);
Locale farsi = new Locale("fa", "IR");
DefaultButtonImageResource imgSaveFa = new
DefaultButtonImageResource(
- "\u0630\u062e\u064a\u0631\u0647");
+ "\u0630\u062e\u064a\u0631\u0647");
imgSaveFa.setFont(fontFa);
DefaultButtonImageResource imgResetFa = new
DefaultButtonImageResource(
-
"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u064a");
+ "\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u064a");
imgResetFa.setFont(fontFa);
getSharedResources().add("save", farsi, imgSaveFa);
getSharedResources().add("reset", farsi, imgResetFa);
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/frames/FramesApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/frames/FramesApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/frames/FramesApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/frames/FramesApplication.java
Thu Apr 10 06:36:09 2008
@@ -35,7 +35,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guestbook/GuestBookApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guestbook/GuestBookApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guestbook/GuestBookApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guestbook/GuestBookApplication.java
Thu Apr 10 06:36:09 2008
@@ -36,7 +36,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<GuestBook> getHomePage()
{
return GuestBook.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guice/GuiceApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guice/GuiceApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guice/GuiceApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/guice/GuiceApplication.java
Thu Apr 10 06:36:09 2008
@@ -38,7 +38,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<HomePage> getHomePage()
{
return HomePage.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/HangmanApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/HangmanApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/HangmanApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/HangmanApplication.java
Thu Apr 10 06:36:09 2008
@@ -40,7 +40,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
@@ -48,6 +49,7 @@
/**
* @see
org.apache.wicket.protocol.http.WebApplication#newSession(Request, Response)
*/
+ @Override
public Session newSession(Request request, Response response)
{
return new HangmanSession(HangmanApplication.this, request);
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hellobrowser/HelloBrowserApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hellobrowser/HelloBrowserApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hellobrowser/HelloBrowserApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hellobrowser/HelloBrowserApplication.java
Thu Apr 10 06:36:09 2008
@@ -36,7 +36,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<HelloBrowser> getHomePage()
{
return HelloBrowser.class;
}
@@ -44,6 +45,7 @@
/**
* @see org.apache.wicket.examples.WicketExampleApplication#init()
*/
+ @Override
protected void init()
{
getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/HelloWorldApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/HelloWorldApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/HelloWorldApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/helloworld/HelloWorldApplication.java
Thu Apr 10 06:36:09 2008
@@ -64,7 +64,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<HelloWorld> getHomePage()
{
return HelloWorld.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/images/ImagesApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/images/ImagesApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/images/ImagesApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/images/ImagesApplication.java
Thu Apr 10 06:36:09 2008
@@ -41,7 +41,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
@@ -49,6 +50,7 @@
/**
* @see org.apache.wicket.examples.WicketExampleApplication#init()
*/
+ @Override
protected void init()
{
getSharedResources().add("cancelButton", new
DefaultButtonImageResource("Cancel"));
@@ -60,6 +62,7 @@
* @see UrlCompressor
* @see
org.apache.wicket.protocol.http.WebApplication#newRequestCycleProcessor()
*/
+ @Override
protected IRequestCycleProcessor newRequestCycleProcessor()
{
return new UrlCompressingWebRequestProcessor();
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/library/LibraryApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/library/LibraryApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/library/LibraryApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/library/LibraryApplication.java
Thu Apr 10 06:36:09 2008
@@ -42,7 +42,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
@@ -50,6 +51,7 @@
/**
* @see
org.apache.wicket.protocol.http.WebApplication#newSession(Request, Response)
*/
+ @Override
public Session newSession(Request request, Response response)
{
return new LibrarySession(LibraryApplication.this, request);
@@ -58,6 +60,7 @@
/**
* @see org.apache.wicket.examples.WicketExampleApplication#init()
*/
+ @Override
protected void init()
{
getResourceSettings().setThrowExceptionOnMissingResource(false);
@@ -66,8 +69,9 @@
// Install a simple page authorization strategy, that checks
all pages
// of type AuthenticatedWebPage.
IAuthorizationStrategy authorizationStrategy = new
SimplePageAuthorizationStrategy(
- AuthenticatedWebPage.class, SignIn.class)
+ AuthenticatedWebPage.class, SignIn.class)
{
+ @Override
protected boolean isAuthorized()
{
// check whether the user is logged on
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/linkomatic/LinkomaticApplication.java
Thu Apr 10 06:36:09 2008
@@ -38,7 +38,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
@@ -46,6 +47,7 @@
/**
* @see org.apache.wicket.protocol.http.WebApplication#init()
*/
+ @Override
protected void init()
{
// log host name and server time in the browser's status bar
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/navomatic/NavomaticApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/navomatic/NavomaticApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/navomatic/NavomaticApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/navomatic/NavomaticApplication.java
Thu Apr 10 06:36:09 2008
@@ -35,7 +35,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Page1> getHomePage()
{
return Page1.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/nested/NestedApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/nested/NestedApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/nested/NestedApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/nested/NestedApplication.java
Thu Apr 10 06:36:09 2008
@@ -35,6 +35,7 @@
/**
* Initialize the application
*/
+ @Override
protected void init()
{
super.init();
@@ -45,7 +46,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/niceurl/NiceUrlApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/niceurl/NiceUrlApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/niceurl/NiceUrlApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/niceurl/NiceUrlApplication.java
Thu Apr 10 06:36:09 2008
@@ -44,7 +44,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
@@ -57,6 +58,7 @@
/**
* @see org.apache.wicket.examples.WicketExampleApplication#init()
*/
+ @Override
protected void init()
{
// Disable creation of javascript which jWebUnit (test only)
@@ -85,10 +87,12 @@
*
* @see
org.apache.wicket.protocol.http.WebApplication#newRequestCycleProcessor()
*/
+ @Override
protected IRequestCycleProcessor newRequestCycleProcessor()
{
return new WebRequestCycleProcessor()
{
+ @Override
protected IRequestCodingStrategy
newRequestCodingStrategy()
{
WebRequestCodingStrategy.Settings stratSettings
= new WebRequestCodingStrategy.Settings();
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/portlet/menu/WicketExamplesMenuApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/portlet/menu/WicketExamplesMenuApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/portlet/menu/WicketExamplesMenuApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/portlet/menu/WicketExamplesMenuApplication.java
Thu Apr 10 06:36:09 2008
@@ -23,6 +23,7 @@
import javax.servlet.ServletContext;
import org.apache.wicket.RequestContext;
+import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.protocol.http.portlet.PortletRequestContext;
@@ -47,7 +48,7 @@
* @see org.apache.wicket.Application#getHomePage()
*/
@Override
- public Class getHomePage()
+ public Class< ? extends WebPage> getHomePage()
{
PortletRequestContext prc =
(PortletRequestContext)RequestContext.get();
if
(PortletMode.EDIT.equals(prc.getPortletRequest().getPortletMode()))
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub/PubApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub/PubApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub/PubApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub/PubApplication.java
Thu Apr 10 06:36:09 2008
@@ -35,7 +35,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub2/PubApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub2/PubApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub2/PubApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/pub2/PubApplication.java
Thu Apr 10 06:36:09 2008
@@ -35,7 +35,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/signin2/SignIn2Application.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/signin2/SignIn2Application.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/signin2/SignIn2Application.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/signin2/SignIn2Application.java
Thu Apr 10 06:36:09 2008
@@ -48,7 +48,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class getHomePage()
+ @Override
+ public Class<Home> getHomePage()
{
return Home.class;
}
@@ -57,6 +58,7 @@
* @see
org.apache.wicket.protocol.http.WebApplication#newSession(org.apache.wicket.Request,
* Response)
*/
+ @Override
public Session newSession(Request request, Response response)
{
return new SignIn2Session(SignIn2Application.this, request);
@@ -65,6 +67,7 @@
/**
* @see org.apache.wicket.examples.WicketExampleApplication#init()
*/
+ @Override
protected void init()
{
super.init();
@@ -98,10 +101,12 @@
/**
* @see
org.apache.wicket.protocol.http.WebApplication#newRequestCycleProcessor()
*/
+ @Override
protected IRequestCycleProcessor newRequestCycleProcessor()
{
return new WebRequestCycleProcessor()
{
+ @Override
protected IRequestCodingStrategy
newRequestCodingStrategy()
{
return new
CryptedUrlWebRequestCodingStrategy(new WebRequestCodingStrategy());
Modified:
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/template/TemplateApplication.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/template/TemplateApplication.java?rev=646798&r1=646797&r2=646798&view=diff
==============================================================================
---
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/template/TemplateApplication.java
(original)
+++
wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/template/TemplateApplication.java
Thu Apr 10 06:36:09 2008
@@ -35,7 +35,8 @@
/**
* @see org.apache.wicket.Application#getHomePage()
*/
- public Class< ? > getHomePage()
+ @Override
+ public Class<Index> getHomePage()
{
return Index.class;
}