title: How to capture button click if more than one button in AspectJ?
body: <p>I wonder if we can capture that which button is clicked if there are more than one button.</p>
  
  <p>On this example, can we reach //do something1 and //do something2 parts with joinPoints?</p>
  
  <pre><code>public class Test {
  
      public Test() {
          JButton j1 = new JButton("button1");
          j1.addActionListener(this);
  
          JButton j2 = new JButton("button2");
          j2.addActionListener(this); 
      }
  
      public void actionPerformed(ActionEvent e)
     {
        //if the button1 clicked 
             //do something1
        //if the button2 clicked 
             //do something2
     }
  </code></pre>
  
  <p>}</p>