Daniel Keir Haywood created ISIS-2848:
-----------------------------------------

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

Reply via email to