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

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

The newest version!
package com.jarvis.cache.util;

import org.springframework.aop.framework.AopProxyUtils;

/**
 *
 */
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 - 2024 Weber Informatics LLC | Privacy Policy