Andi Huber created ISIS-2152: -------------------------------- Summary: 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
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)