Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-4520

Make sure that website managed beans injected into platform managed objects always execute with website class loader

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.0.0
    • None
    • None

    Description

      HST site webapps can inject customization which are used in the HstModelImpl for the website. However, the HstModelImpl is managed by the platform webapp.

      Since the website managed beans that get injected might require the specific website class loader instead of the current thread's classloader, we need to make sure that the website classloader is used when those objects' methods get invoked.

      For example, when an HST site webapp inject custom ChannelFilter objects, this code is executed typically by a CMS webapp thread (and this cms class loader). Hence we need to switch classloader during those method invocations

      Likewise for example for the LinkCreator customizations: For example when we want to resolve cross webapp links, the customizations of, say, the LinkProcessor, per webapp should be executed with the webapp its class loader

      Attachments

        Activity

          People

            Unassigned Unassigned
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: