Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5557

Don't cache the result of AuthenticatedWebApplication#getWebSessionClass()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.14.0
    • 7.0.0-M1, 6.15.0
    • wicket-auth-roles
    • None

    Description

      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.

      Attachments

        1. wicket-5557v1.patch
          2 kB
          Bill Speirs

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            wspeirs Bill Speirs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: