byte-buddy
byte-buddy copied to clipboard
None of [] allows for delegation from static org.spiderflow.aop.HttpConnection$Response org.spiderflow.aop.HttpConnection$Response.execute(org.jsoup.Connection$Request) throws java.io.IOException
the method like this, method without public、private、protected
public void init() { TypePool typePool = TypePool.Default.ofSystemLoader();
new ByteBuddy()
.redefine(typePool.describe("org.jsoup.helper.HttpConnection$Response").resolve(),
ClassFileLocator.ForClassLoader.ofSystemLoader())
.method(ElementMatchers.isStatic()
.and(ElementMatchers.named("execute")))
.intercept(MethodDelegation.to(new Interceptor()))
.make()
.load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.INJECTION)
.getLoaded();
}
How does your interceptor look like?