类 Enhancer.EnhancerFactoryData
java.lang.Object
cn.taketoday.bytecode.proxy.Enhancer.EnhancerFactoryData
- 封闭类:
- Enhancer
The idea of the class is to cache relevant java.lang.reflect instances so
proxy-class can be instantiated faster that when using
ReflectionUtils.newInstance(Class, Class[], Object[]) and
Enhancer.setThreadCallbacks(Class, Callback[])-
字段概要
字段修饰符和类型字段说明final Class<?>private final Constructor<?>private final Class<?>[]private final Method -
构造器概要
构造器构造器说明EnhancerFactoryData(Class<?> generatedClass, Class<?>[] primaryConstructorArgTypes, boolean classOnly) -
方法概要
修饰符和类型方法说明newInstance(Class<?>[] argumentTypes, Object[] arguments, Callback[] callbacks) Creates proxy instance for given argument types, and assigns the callbacks.private voidsetThreadCallbacks(Callback[] callbacks)
-
字段详细资料
-
generatedClass
-
setThreadCallbacks
-
-
primaryConstructor
-
-
构造器详细资料
-
EnhancerFactoryData
-
-
方法详细资料
-
newInstance
Creates proxy instance for given argument types, and assigns the callbacks. Ideally, for each proxy class, just one set of argument types should be used, otherwise it would have to spend time on constructor lookup. Technically, it is a re-implementation ofEnhancer.createUsingReflection(Class), with "cachesetThreadCallbacksandprimaryConstructor"- 参数:
argumentTypes- constructor argument typesarguments- constructor argumentscallbacks- callbacks to set for the new instance- 返回:
- newly created proxy
- 另请参阅:
-
setThreadCallbacks
-