程序包 cn.taketoday.bytecode.proxy
package cn.taketoday.bytecode.proxy
-
类说明All callback interfaces used by
Enhancerextend this interface.Map methods of subclasses generated byEnhancerto a particular callback.DispatchingEnhancercallback.Generates dynamic subclasses to enable method interception.Uses bytecode reflection to figure out the targets of all bridge methods that use invokespecial and invokeinterface, so that we can later rewrite them to use invokevirtual.The idea of the class is to cache relevant java.lang.reflect instances so proxy-class can be instantiated faster that when usingReflectionUtils.newInstance(Class, Class[], Object[])andEnhancer.setThreadCallbacks(Class, Callback[])All enhanced instances returned by theEnhancerclass implement this interface.Enhancercallback that simply returns the value to return from the proxied method.Generates new interfaces at runtime.InvocationHandlerreplacement (unavailable under JDK 1.2).Lazy-loadingEnhancercallback.General-purposeEnhancercallback which provides for "around advice".Classes generated byEnhancerpass this object to the registeredMethodInterceptorobjects when an intercepted method is invoked.Mixinallows multiple objects to be combined into a single larger object.Methods using thisEnhancercallback will delegate directly to the default (super) implementation in the base class.This class is meant to be used as replacement forjava.lang.reflect.Proxyunder JDK 1.2.DispatchingEnhancercallback.Used byProxyas a replacement forjava.lang.reflect.UndeclaredThrowableException.