You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "William R. Speirs (JIRA)" <ji...@apache.org> on 2014/04/10 22:14:15 UTC

[jira] [Created] (WICKET-5557) getWebSessionClass() in AuthenticatedWebApplication must be constant

William R. Speirs created WICKET-5557:
-----------------------------------------

             Summary: getWebSessionClass() in AuthenticatedWebApplication must be constant
                 Key: WICKET-5557
                 URL: https://issues.apache.org/jira/browse/WICKET-5557
             Project: Wicket
          Issue Type: Bug
          Components: wicket-auth-roles
    Affects Versions: 6.14.0
            Reporter: William R. Speirs
            Priority: Minor


Currently the AuthenticatedWebApplication constructor obtains and holds a reference to the AbstractAuthenticatedWebSession class. This makes it impossible for classes extending AuthenticatedWebApplication to use a class based upon something passed into their constructors. The only option is to provide a "static"/"constant" class from the getWebSessionClass() method.

I don't see any advantage to holding this reference. Instead I propose that the class is changed to simply calling getWebSessionClass() each time the class is needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)