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

com.leftins.tools.aspect.AspectHandler Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
package com.leftins.tools.aspect;

import org.aspectj.lang.ProceedingJoinPoint;

import java.lang.reflect.Method;

public abstract class AspectHandler {
    /**
     *  工厂方法模式完成注解功能
     * @param pjp 切面类
     * @param args 方法参数
     * @param method 方法
     * @param isAll 是否log和validation全验证
     * @return Object
     * @throws Throwable 静态类自定义异常
     */
    public Object doAspectHandler(ProceedingJoinPoint pjp, Object[] args, Method method, boolean isAll)throws Throwable{
        AspectInterface aspectApi = factoryMethod();
        return aspectApi.doHandlerAspect(args,pjp,method,isAll);
    }
    protected  abstract AspectInterface factoryMethod();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy