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

Andi Huber updated ISIS-2848:
-----------------------------
    Issue Type: Wish  (was: Improvement)

> Allow local mixins to be wrapped more "intuitively"
> ---------------------------------------------------
>
>                 Key: ISIS-2848
>                 URL: https://issues.apache.org/jira/browse/ISIS-2848
>             Project: Isis
>          Issue Type: Wish
>          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.20.7#820007)

Reply via email to