1

What is the default order of intercpetor call in spring framework if there are more than one interceptor defined .Do we need to implement Ordered interface of spring framework for ordering of interceptor call?If Ordered interface is not implemented how it handles the ordering .If it is implemented from which class in framework it is controlled?For example there are 5 interceptor for login,privilage,cache,security,dynamic operation before calling a actual method in ....package.class.methodName.

Here it is xml

<aop:config>
        <aop:aspect id="interceptor1" ref="beanId">
            <aop:pointcut id="pointcut" expression="execution(* *..*ServiceImpl.*(..))" />
            <aop:before pointcut-ref="pointcut" method="someMethod" />
            <aop:after pointcut-ref="pointcut" method="someMethod1" />
        </aop:aspect>
    </aop:config>
    <bean id="beanId" class="className">

    </bean>
3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.