Github user martin-g commented on a diff in the pull request:

    https://github.com/apache/wicket/pull/209#discussion_r98612314
  
    --- Diff: 
wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java 
---
    @@ -1074,4 +1074,39 @@ public boolean getUpdateAutoLabelsOnAjaxRequests()
        {
                return true;
        }
    +
    +   /**
    +    * Returns a new web application.
    +    * @param homePageClass Home page class
    +    * @return new web application
    +    */
    +   public static WebApplication newWebApp(final Class<? extends Page> 
homePageClass) {
    +           return newWebApp(homePageClass, null);
    +   }
    +
    +   /**
    +    * Returns a new web application.
    +    * @param homePageClass Home page class
    +    * @param initConsumer  Lambda for initializing the web application
    +    * @return new web application
    +    */
    +   public static WebApplication newWebApp(final Class<? extends Page> 
homePageClass, final SerializableConsumer<WebApplication> initConsumer) {
    --- End diff --
    
    I don't imagine a good use case where someone would like to use an 
anonymous instance of WebApplication.
    This is useful only for mini applications like the quickstart. But any real 
application most definitely will need a proper specialization and its own 
logic.  


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to