All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy