You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2021/01/12 06:45:00 UTC

[jira] [Resolved] (ISIS-826) Remove WrappedObject interface, use instead WrappingObject as its replacement.

     [ https://issues.apache.org/jira/browse/ISIS-826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Keir Haywood resolved ISIS-826.
--------------------------------------
    Resolution: Fixed

This was implemented in an earlier release; just cleaning up the backlog here.

> Remove WrappedObject interface, use instead WrappingObject as its replacement.
> ------------------------------------------------------------------------------
>
>                 Key: ISIS-826
>                 URL: https://issues.apache.org/jira/browse/ISIS-826
>             Project: Isis
>          Issue Type: Improvement
>          Components: Isis Applib (programming model)
>    Affects Versions: core-1.5.0
>            Reporter: Daniel Keir Haywood
>            Assignee: Daniel Keir Haywood
>            Priority: Major
>             Fix For: 2.0.0-M5
>
>
> For example, WrappedObject defines save() and wrapped().  If the underlying domain object also defined these methods as actions, then it would be impossible to use the wrapper to check business rules etc.
> Therefore should remove this interface (in Isis 2.x), to replace with one that uses methods which are unlikely to cause a clash.
> (The workaround in the meantime is to rename the action methods and use @Named() if required for the UI).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)