I am weaving the spring-mvc jar, as the code I am trying to wrap is from the Spring-MVC jar. I believe the equivalent of the maven configuration parameters
<weaveDependencies>
<weaveDependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</weaveDependency>
</weaveDependencies>
is: ajc -inpath <path-to spring-mvc.jar>.
So, I am expecting it to be weaving the Spring libraries. I just do not understand why it is failing on those classes which do not call *.getResources().
I do not seem to be able to properly figure out how to code the within() clause appropriately. Can you please advise? I am trying to create a pointcut around org.springframework..SpringWildcardServletTilesApplicationContext.getResources(..) when called from within org.apache.tiles.extras.renderer.OptionsRenderer class.
At the moment, my ugly if() condition checks the stacktrace to validate that OptionsRenderer is the calling method, as I was unable to figure out the correct syntax for getting the within() clause to work appropriately.
I thought it would be: @Pointcut("within(org.apache.tiles.extras.renderer.OptionsRenderer) && call( * org.springframework..SpringWildcardServletTilesApplicationContext.getResources(..))") but that does not seem to be accurate.
Any advice would be appreciated.
Thanks,
Eric