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

Andi Huber updated ISIS-2152:
-----------------------------
    Fix Version/s: 2.0.0

> 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
>            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)

Reply via email to