[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: MethodInvocation.getArguments return value for 0 argumen

clebert.suconic@jboss.com do-not-reply at jboss.com
Fri Mar 23 15:25:01 EDT 2007


this returns null or aop1.x if I call someMethod();

      if (mi.getArguments() != null)
  |       {
  |          jbm.setText((String)mi.getArguments()[0]);
  |       }
  | 


While it returns something different with aop 2.0

Notice that I have an overloaded method.. where I can do either someMethod() or someMethod(String).

Our aop binding is set on:

   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createTextMessage(..))">
  |       <advice name="handleCreateTextMessage" aspect="org.jboss.jms.client.container.SessionAspect"/>
  |    </bind>
  | 

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

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



More information about the jboss-dev-forums mailing list