Is there any way to support duplicate method names in mixin interfaces. I have
an introduction that has two mixins and I only seem to be able to get this to
work if none of the interfaces have methods of the same name.
Is this expected behaviour?
I was trying to extend a model so that I could both support a tree view and a
graphical workflow view, both interfaces having the method getChildren(). I'm
new to AOP so I'm not sure if this is an appropriate use of the technology,
just seemed like a good idea at the time.
Thanks,
John.
Example:
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <aop>
| <introduction class="test.HelloWorld">
| <mixin>
| <interfaces>
| test.Test
| </interfaces>
| <class>test.HelloWorldImpl</class>
| <construction>new test.HelloWorldImpl(this)</construction>
| </mixin>
| <mixin>
| <interfaces>
| test.Test1
| </interfaces>
| <class>test.HelloWorldImpl1</class>
| <construction>new test.HelloWorldImpl1(this)</construction>
| </mixin>
| </introduction>
|
| </aop>
| public interface Test {
| String getWorldName();
| }
| public interface Test1 {
| String getWorldName();
| }
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860791#3860791
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860791
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development