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

com.jarvis.cache.util.AopUtil Maven / Gradle / Ivy

package com.jarvis.cache.util;

import org.springframework.aop.framework.AopProxyUtils;

/**
 * @author jiayu.qiu
 */
public class AopUtil {

    /**
     * @param target
     * @return
     */
    public static Class getTargetClass(Object target) {
        Class targetClass=AopProxyUtils.ultimateTargetClass(target);
        if(targetClass == null && target != null) {
            targetClass=target.getClass();
        }
        return targetClass;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy