Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx-3.1.xsd>
- .......
- <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" order="[Order for @Transactional]">
- <beans/>
- import org.aspectj.lang.ProceedingJoinPoint;
- import org.aspectj.lang.annotation.Around;
- import org.aspectj.lang.annotation.Aspect;
- import org.springframework.core.Ordered;
- @Aspect
- public class CustomAspect implements Ordered {
- @Around(value = "@annotation(CustomAnnotation)")
- public Object aroundAdvice(ProceedingJoinPoint joinPoint) throws Throwable {
- ...
- }
- ....
- @Override
- public int getOrder() {
- return [Order for @CustomAnnotation];
- }
- ....
- }
Add Comment
Please, Sign In to add comment