0

We have 5 different projects A,B,C,D and E where aspect class and poitncut is declared only in ProjectA and we are trying to call this pointcut method in these projects A,B,C,D and E

Project A - has the aspect class and poitncut on MethodA of CLassA. pom.xml includes aspectJ-maven-plugin , maven-compiler-plugin, aspectjrt.

From Project A, if we call MethodA , pointcut function and MethodA are executed without any issues.

Project B/C/D - pojectA is added as pom dependency in these projects to call MethodA of ProjectA

When we call ProjectA's MethodA of classA, we can see only MethodA is called and NOT the POINTCUT function is called.

STRAIGHT QUESTION - Without adding aspect-jrt dependency in the Projects B,C,D and E , if we call MethodA of ProjectA (pointcut declared) , pointcut advice /around call should be executed ?? Any possibility.

Actual Ouptut - pointcut function is not called.

Requirement - Declare a pointcut to method A of ProjectA ,whenever a method A of projectA is called by other projects, pointcut function should be executed. Is Achievable using aspectJ.

Any help pls.


Rag
  • 13
  • 2
  • You forgot to mention that this question is related to [that one](https://stackoverflow.com/q/68321439/1082681), see also my extensive answer there. Like the other question, this one suffers from the problem that it is too theoretical. SO is all about code, and your question is only prose. Please learn what an [MCVE](https://stackoverflow.com/help/mcve) is, then provide one. I spent lots of time, trying to answer your imprecise first question. Before answering this one, let us finish our business with the first one, shall we? – kriegaex Jul 12 '21 at 02:53

0 Answers0