[
https://issues.apache.org/jira/browse/ISIS-2848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17401527#comment-17401527
]
Daniel Keir Haywood commented on ISIS-2848:
-------------------------------------------
This might not be possible without resorting to AOP to intercept the call to
the inner local class' constructor.
> Allow local mixins to be wrapped more "intuitively"
> ---------------------------------------------------
>
> Key: ISIS-2848
> URL: https://issues.apache.org/jira/browse/ISIS-2848
> Project: Isis
> Issue Type: Improvement
> Components: Isis Core
> Affects Versions: 2.0.0-M5
> Reporter: Daniel Keir Haywood
> Priority: Minor
> Fix For: 2.0.0
>
>
> (This is a nice-to-have, but could avoid confusion etc).
> If we use the local class mixin idiom:
> {code:java}
> public class Customer {
> @Action
> public class placeOrder {
> public Order act(...) { ... }
> }
> }{code}
> then to invoke using `WrapperFactory` in an integ test we have to use:
> {code:java}
> wrapMixin(Customer.placeOrder.class, customer).act(...){code}
> but it would be more intuitive to use:
> {code:java}
> wrap(customer).new placeOrder().act(...) {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)