Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1425

Fix support for publishing of wrapper calling programmatically instantiated mixin.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.12.1
    • Fix Version/s: 1.13.0
    • Component/s: Core
    • Labels:
      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

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: