Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7559

Support whitelisting for AnnotationProcessingTypeResolver

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Critical
    • 6.1
    • None
    • None
    • None
    • Yes
    • Yes
    • 6.1 Release Sprint
    • 2

    Description

      AnnotationProcessingTypeResolver should support whitelisting.

       

      This will also help with problem on WAS, WLP, WLS, WildFly where types are not resolved - https://git.magnolia-cms.com/snippets/fd1584fba03249b3aac256e853855349

      Problem on WAS, WLP, WLS, WildFly is in org.reflections.util.ClasspathHelper#forClassLoader method which is used when org.reflections.Reflections is not limited to certain package(s). This method loads resources only from classloaders which are instance of URLClassLoader, but that is not case for WAS, WLP, WLS, WildFly. 

      If org.reflections.Reflections is limited to certain package(s) then org.reflections.util.ClasspathHelperforResource#forResource method is used which loads resources from whatever classloader.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mdivilek Milan Divilek
                mdivilek Milan Divilek
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD