title: Wormhole pattern w. AspectJ: How to get caller method name?
body: <p>Using the wormhole pattern with AspectJ, is there a way that the executing method name can be seen in the wormhole advice?</p>
  
  <p>I have an example where a service class (ClientService) calls getters on a domain class (Client). What I want, is to know in the advice to know the name of service method  that called the getter.
  I have no problem seeing the service object itself, but I need the name of the service method.</p>
  
  <p>Here's my aspect:</p>
  
  <pre><code>public aspect MyAspect {
  
      pointcut serviceExecution(ClientService srv) : execution(* ClientService.*(..)) &amp;&amp; this(srv);
  
      pointcut modelGetter(Client client) : execution(public * Client.get*()) &amp;&amp; this(client);    
  
      pointcut wormhole(ClientService srv, Client client) : cflow(serviceExecution(srv)) &amp;&amp; modelGetter(client);
  
      Object around(ClientService srv, Client client) : wormhole(srv, client) {
  
          // what is the name of the service-method calling? 
  
          Object ret = proceed(srv, client);
          return ret;
      }
  }
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p>Thanks</p>
  
  <p>-J</p>