There are two methods defined in ABC.java
public void method1(){
.........
method2();
...........
}
public void method2(){
...............
...............
}
I want to have AOP on call of method2.So,
I created one class,AOPLogger.java,having aspect functionality provided in a method checkAccess
In configuration file, I did something like below
<bean id="advice" class="p.AOPLogger" />
<aop:config>
<aop:pointcut id="abc" expression="execution(*p.ABC.method2(..))" />
<aop:aspect id="service" ref="advice">
<aop:before pointcut-ref="abc" method="checkAccess" />
</aop:aspect>
</aop:config>
But when my method2 is called, AOP functionality is not getting invoked i.e. checkAccess method is not getting invoked of AOPLogger class.
Any thing i am missing?