Current state of mixins

17 views
Skip to first unread message

Tomek Pluskiewicz

unread,
Nov 25, 2011, 9:44:43 AM11/25/11
to castle-pro...@googlegroups.com
Hi

On the Dynamic Proxy tutorial Krzysztof introduces mixins, but at that point they had some limitations, which version 2.2 was supposed to overcome.

What then is the current state of mixins. What they can and what they cannot in the latest version and in 3RC?

Regards,
Tomasz

Krzysztof Koźmic

unread,
Nov 25, 2011, 5:46:40 PM11/25/11
to castle-pro...@googlegroups.com
Hi Tomasz,

What limitations did you have in mind?
There hasn't been terribly lot of work happening around mixins as
they're hardly the most popular area of DP

Krzysztof

> --
> You received this message because you are subscribed to the Google
> Groups "Castle Project Development List" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/castle-project-devel/-/OIQTeK_Cv0oJ.
> To post to this group, send email to
> castle-pro...@googlegroups.com.
> To unsubscribe from this group, send email to
> castle-project-d...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/castle-project-devel?hl=en.

Tomek Pluskiewicz

unread,
Nov 26, 2011, 10:11:47 AM11/26/11
to castle-pro...@googlegroups.com
Let me quote:

You don’t specify which mixin interfaces you want to forward to which mixin. This is implicit – if mixin implements an interface, it will be forwarded to that mixin instance, unless someone else implements it as well. You can’t have two mixins that implement the same interface. You can’t have mixin implement same interface as target, nor can you have a mixin implementing one of additional interfaces to proxy. In any of these cases when trying to create a proxy you will get an error.

This is not a very serious issue though, and I think in most cases it should be enough. In case you need more power, Dynamic Proxy v2.2 will have better support for mixin, allowing scenarios that are not possible in current version.

 I specifically address the statetement that DP 2.2 will have better support for mixnis. I wonder what has actually changed recently.

Krzysztof Koźmic

unread,
Nov 26, 2011, 4:06:12 PM11/26/11
to castle-pro...@googlegroups.com
Ah right, that one.
Have a look at this issue, that's the change I was referring to: http://issues.castleproject.org/issue/DYNPROXY-96

Krzysztof
--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
Reply all
Reply to author
Forward
0 new messages