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

widen visibiliy of GuiceProxyTargetLocator and findBindingAnnotation

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4.2, 1.5-M1
    • wicket-guice
    • None
    • wicket+guice with serializable classes with dependencies on non-serializable classes

    Description

      GuiceProxyTargetLocator to have a public constructor. Currently it is package-access. Furthermore findBindingAnnotation should be made public static.

      my usecase:
      im using LazyInitProxyFactory.createProxy to substitute non-serializable classes with proxies.
      see also

      http://www.nabble.com/request%3A-make-GuiceProxyTargetLocator-public-td22135263.html

      alternatively, provide a convinience method to wrap injected objects with the injector-specific proxy.

      workaround: create a class in the package to get around package-access lmitation, and duplicate code of findBindingAnnotation

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            apetersson Andreas Petersson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: