类 BytecodeProviderImpl
- java.lang.Object
-
- org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl
-
- 所有已实现的接口:
Serializable,BytecodeProvider,Service
public class BytecodeProviderImpl extends Object implements BytecodeProvider
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classBytecodeProviderImpl.CloningPropertyCall
-
构造器概要
构造器 构造器 说明 BytecodeProviderImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ByteBuddyProxyHelpergetByteBuddyProxyHelper()EnhancergetEnhancer(EnhancementContext enhancementContext)Returns a byte code enhancer that implements the enhancements described in the supplied enhancement context.ProxyFactoryFactorygetProxyFactoryFactory()Retrieve the specific factory for this provider capable of generating run-time proxies for lazy-loading purposes.ReflectionOptimizergetReflectionOptimizer(Class clazz, String[] getterNames, String[] setterNames, Class[] types)Retrieve the ReflectionOptimizer delegate for this provider capable of generating reflection optimization components.voidresetCaches()Some BytecodeProvider implementations will have classloader specific caching.
-
-
-
方法详细资料
-
getProxyFactoryFactory
public ProxyFactoryFactory getProxyFactoryFactory()
从接口复制的说明:BytecodeProviderRetrieve the specific factory for this provider capable of generating run-time proxies for lazy-loading purposes.- 指定者:
getProxyFactoryFactory在接口中BytecodeProvider- 返回:
- The provider specific factory.
-
getReflectionOptimizer
public ReflectionOptimizer getReflectionOptimizer(Class clazz, String[] getterNames, String[] setterNames, Class[] types)
从接口复制的说明:BytecodeProviderRetrieve the ReflectionOptimizer delegate for this provider capable of generating reflection optimization components.- 指定者:
getReflectionOptimizer在接口中BytecodeProvider- 参数:
clazz- The class to be reflected upon.getterNames- Names of all property getters to be accessed via reflection.setterNames- Names of all property setters to be accessed via reflection.types- The types of all properties to be accessed.- 返回:
- The reflection optimization delegate.
-
getByteBuddyProxyHelper
public ByteBuddyProxyHelper getByteBuddyProxyHelper()
-
getEnhancer
public Enhancer getEnhancer(EnhancementContext enhancementContext)
从接口复制的说明:BytecodeProviderReturns a byte code enhancer that implements the enhancements described in the supplied enhancement context.- 指定者:
getEnhancer在接口中BytecodeProvider- 参数:
enhancementContext- The enhancement context that describes the enhancements to apply.- 返回:
- An enhancer to perform byte code manipulations.
-
resetCaches
public void resetCaches()
从接口复制的说明:BytecodeProviderSome BytecodeProvider implementations will have classloader specific caching. These caches are useful at runtime but need to be reset at least on SessionFactory shutdown to prevent leaking the deployment classloader. Since the BytecodeProvider is static these caches are potentially shared across multiple deployments; in this case we'll clear all caches which might show as a small, temporary performance degradation on the SessionFactory instances which haven't been closed. This limitation will be removed in the future, when these providers will no longer be static.- 指定者:
resetCaches在接口中BytecodeProvider
-
-