Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » how to capture method joinpoints in EJB 3 session bean?
how to capture method joinpoints in EJB 3 session bean? [message #600396] Tue, 28 July 2009 09:46
ppk is currently offline ppkFriend
Messages: 6
Registered: July 2009
Junior Member
Hi all,

i am new to aspectj and i am trying to write aspect to capture the method
of all a session bean (EJB 3.0 syntax).

the methods i want to captures are the 'business method' in the session
bean.
As EJB 3.0 session bean can be created in the following form:

------------------------------------------------------------ --
public interface SessionBeanInterface {
public void advicedMethod();
}
------------------------------------------------------------ --

@Stateless(name="SessionBean")
@Remote(SessionBeanInterface.class)
public class SessionBean implements SessionBeanInterface {

public void advicedMethod(){

//this method to be captured by before execution(...) pointcut

}

public void nonAdvicedMethod() {
//this method is NOT to be captured
}
}
------------------------------------------------------------ -------

could anybody tell me the pointcut to capture ONLY the
method in the SessionBeanInterface interface??

*** i CANNOT HARDCODE the interface in the aspect as i am now writing a
*** generic tool to capture all the session bean interface method

thank you.

ppk
Previous Topic:Critical:Cross reference view and editor line clutter show incorrect info
Next Topic:how to capture method joinpoints in EJB 3 session bean?
Goto Forum:
  


Current Time: Tue Apr 16 15:26:57 GMT 2024

Powered by FUDForum. Page generated in 0.14133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top