类 BytecodeProviderImpl
- java.lang.Object
-
- org.hibernate.bytecode.internal.none.BytecodeProviderImpl
-
- 所有已实现的接口:
Serializable,BytecodeProvider,Service
public final class BytecodeProviderImpl extends Object implements BytecodeProvider
This BytecodeProvider represents the "no-op" enhancer; mostly useful as an optimisation when not needing any byte code optimisation applied, for example when the entities have been enhanced at compile time. Choosing this BytecodeProvider allows to exclude the bytecode enhancement libraries from the runtime classpath, but is not compatible with the option AvailableSettings#USE_REFLECTION_OPTIMIZER .- 从以下版本开始:
- 5.4
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 BytecodeProviderImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.bytecode.spi.BytecodeProvider
resetCaches
-
-
-
-
方法详细资料
-
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.
-
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.
-
-