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

io.polaris.core.aop.JdkAspect Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package io.polaris.core.aop;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author Qt
 * @since May 14, 2024
 */
public class JdkAspect extends Aspect implements InvocationHandler {


	public JdkAspect(Object target, Advice... advices) {
		super(target, advices);
	}

	public JdkAspect(Object target, Iterable advices) {
		super(target, advices);
	}

	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		JdkInvocation invocation = new JdkInvocation(proxy, method);
		return super.intercept(proxy, method, args, invocation);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy