java - Why Spring AOP is not weaving external jars at runtime? -
i have java application build upon spring 3. project has jar dependency. this dependency contains @org.aspectj.lang.annotation.aspect class (lets say, com.aspectprovider.aspects.myaspect ). there's @before advice weave method classes implements interface foo . like: @before("execution(* com.project.foo.save(..))") the foo interface can inside "project" or in jar. doesn't matter example. my project contains classes implements foo . classes want weaved, of course. my spring application context configuration file ( applicationcontext.xml ) contains line: <aop:aspectj-autoproxy /> i declare aspect bean, , inject properties: <bean id="myaspect" class="com.aspectprovider.aspects.myaspect" factory-method="aspectof" > <property name="someproperty" value="somevalue" /> </bean> trough logging can see myaspect instantiated , properties injected. method save not inter...