[
https://issues.apache.org/jira/browse/ISIS-2152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andi Huber resolved ISIS-2152.
------------------------------
Resolution: Fixed
API Note added: EXPERIMENTAL
> 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)