程序包的使用
cn.taketoday.bytecode.proxy
-
类说明All callback interfaces used by
Enhancerextend this interface.Map methods of subclasses generated byEnhancerto a particular callback.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[])InvocationHandlerreplacement (unavailable under JDK 1.2).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.