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

Extend ObjectLocator to create a proxied, autobuilt service

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.7
    • Component/s: tapestry-core
    • Labels:
      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

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              hlship Howard M. Lewis Ship
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: