[jboss-user] [JBoss AOP] - Re: Pls help with a simple Mixin problem

flavia.rainone do-not-reply at jboss.com
Sat Dec 2 19:12:28 EST 2006


The problem is in your aspect code:


  | @Aspect
  | public class MyAspect
  | {
  | @Mixin (target=MyPojo.class, interfaces={MyInf.class})
  | public static MyMixin createMyMixin() {
  | return new MyMixin();
  | }
  | }
  | 

The createMyMixin method must receive the pojo as an argument. Just replace your aspect by this new one.


  | @Aspect
  | public class MyAspect
  | {
  | @Mixin (target=MyPojo.class, interfaces={MyInf.class})
  | public static MyMixin createMyMixin(MyPojo pojo) {
  | return new MyMixin();
  | }
  | }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990769#3990769

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990769



More information about the jboss-user mailing list