Inject Information about AOP Constructs for the Interceptor
Injection of AOP constructs A similar scheme to what is outlined above is used for injecting information about the Advisor, InstanceAdvisor and Joinpoint for the intereceptor. The definition of SimpleInterceptor is shown here, but is exactly the same for ConfigAspectPerVm, ConfigAspectPerClass, ConfigAspectPerInstance and ConfigAspectPerJoinpoint aspects. ... For injecting the Advisor, the setMyAdvisor() method will be called. For injecting the InstanceAdvisor, the setMyInstanceAdvisor() method will be called. For injecting the Joinpoint, the setMyJoinpoint() method will be called. The setters used by ConfigInterceptor are shown here: public class ConfigInterceptor implements Interceptor { ... Advisor advisor; InstanceAdvisor instanceAdvisor; Joinpoint jp; ... public void setMyAdvisor(Advisor advisor) { this.advisor = advisor; } public void setMyInstanceAdvisor(InstanceAdvisor instanceAdvisor) { this.instanceAdvisor = instanceAdvisor; } public void setMyJoinpoint(Joinpoint jp) { this.jp = jp; } }