类 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

        public BytecodeProviderImpl()
    • 方法详细资料

      • getReflectionOptimizer

        public ReflectionOptimizer getReflectionOptimizer​(Class clazz,
                                                          String[] getterNames,
                                                          String[] setterNames,
                                                          Class[] types)
        从接口复制的说明: BytecodeProvider
        Retrieve 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)
        从接口复制的说明: BytecodeProvider
        Returns 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.