Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3030

DefaultContentBeansTool.getAnnotatedClasses() doesn't need to depend on HstRequestContext

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2.28.00
    • Fix Version/s: 2.28.06, 2.30.00
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      Description

      Currently, DefaultContentBeansTool.getAnnotatedClasses(ClasspathResourceScanner) depends on HstRequestContext only because it wants to read servlet context parameter.

      It must be more useful to let it not depend on HstRequestContext. It can access ComponentManager#getServletContext() instead.

      This will make it more convenient if someone wants to create an ObjectConverter where there's no HstRequestContext available. e.g, an hippo event listener implementation.

        Attachments

          Activity

            People

            • Assignee:
              jsheriff Junaidh Kadhar Sheriff
              Reporter:
              wko Woonsan Ko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: