Discussion

102
Views
Close popover
Nikolay Ivshin (NikolayI0124)
Sberbank

Sberbank
RU
NikolayI0124 Member since 2014 3 posts
Sberbank
Posted: September 7, 2015
Last activity: September 7, 2015
Closed

AspectJ audit

Hello,

I am going to develop AspectJ audit tool to work with PRPC.

The idea is to write Java aspect with point-cuts to for audit of certain Java-method calls. By means of com.pega.pegarules.pub.runtime.PublicAPI I can read PRPC step page content anytime, and extract required information from XML, but i need to intercept the proper java class method invocation (as configured in point-cut) to do it.  

As far as I understand, PRPC is bundle-based system. Hence, I will occur with the same problems as in OSGI applications: not all classes will be woven. Thus, I wont have the way to intercept all required metgod calls. How this problem is solved in Equinox you may read here: http://www.eclipse.org/equinox/weaving/ .

Could you give me an advice how to do correct load-time weaving in PRPC ?  Do I need to develop my own weaving tool or any out-of-the-box solution exists already?

Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.