You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (JIRA)" <ji...@apache.org> on 2019/07/11 10:34:00 UTC
[jira] [Assigned] (ISIS-2152) FactoryService (API): remove 'm'
shortcut, add 'viewModel'
[ https://issues.apache.org/jira/browse/ISIS-2152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber reassigned ISIS-2152:
--------------------------------
Assignee: Andi Huber
> FactoryService (API): remove 'm' shortcut, add 'viewModel'
> ----------------------------------------------------------
>
> Key: ISIS-2152
> URL: https://issues.apache.org/jira/browse/ISIS-2152
> Project: Isis
> Issue Type: Improvement
> Reporter: Andi Huber
> Assignee: Andi Huber
> Priority: Major
> Fix For: 2.0.0
>
>
> Opinionated: remove this shortcut for 'mixin', don't encourage bad code readablity, especially when the verbose variant 'mixin' is already short enough:
>
> {code:java}
> <T> T m(Class<T> mixinClass, Object mixedIn);
> {code}
> Add
>
>
> {code:java}
> /**
> * Creates a new ViewModel instance, and initializes according to the given {@code mementoStr}
> * @param viewModelClass
> * @param mementoStr
> * @since 2.0
> */
> <T> T viewModel(Class<T> viewModelClass, @Nullable String mementoStr);
> {code}
> However, I'm not entirely sure whether its a good idea to expose the mementoStr with the API that way.
>
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)