Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1860

Extend ObjectLocator to create a proxied, autobuilt service

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.6
    • 5.0.7
    • tapestry-core
    • None

    Description

      Currently, the ObjectLocator.autobuild(Class) method immediately instantiates a class, including injected dependencies via the class' constructor.

      However, in certain cases, such as contributions to the MasterObjectProvider, you need to proxy the contribution to prevent server construction dependency cycles.

      It would be nice if there was an autoproxy(Class,Class) method that would create a proxy (similar to a standard service proxy) that would delay instantiation of the class. First class is the interface type, second class is the implementation class.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: