Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1425

Fix support for publishing of wrapper calling programmatically instantiated mixin.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.12.1
    • 1.13.0
    • Core
    • None

    Description

      suppose we have a mixin:

      Touchable_touch

      whose action "$$" is published.

      What already works is that this will be published as an action "touch" on the mixed-in domain object.

      However, if we try to do this programmatically via the WrapperFactory, ie

      wrapperFactory.wrap(factoryService.mixin(Touchable_touch.class, touchable)).$$();
      

      then the target that is published is the (transient) mixin object itself, rather than the domain object.

      ~~~
      The fix is therefore to make the wrapper factory's wrapper proxy more intelligent, by invoking on the mixed-in action on the mixed-in domain object, rather than simply on the regular default action of the mixin (transient) object.

      If this

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: