com.ideaaedi.commonspring.aop.PointcutAdvisorWithInitial Maven / Gradle / Ivy
The newest version!
package com.ideaaedi.commonspring.aop;
import org.aopalliance.aop.Advice;
import org.springframework.aop.support.DefaultPointcutAdvisor;
import org.springframework.beans.factory.InitializingBean;
/**
* (non-javadoc)
*
* @author JustryDeng
* @since 1.0.0
*/
public class PointcutAdvisorWithInitial extends DefaultPointcutAdvisor implements InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
Advice advice = getAdvice();
if (advice instanceof InitializingBean initializingBean) {
initializingBean.afterPropertiesSet();
}
}
}