Class ToccoByteBuddyBytecodeProvider

java.lang.Object
org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl
ch.tocco.nice2.persist.core.impl.hibernate.ToccoByteBuddyBytecodeProvider
All Implemented Interfaces:
Serializable, org.hibernate.bytecode.spi.BytecodeProvider, org.hibernate.service.Service

public class ToccoByteBuddyBytecodeProvider extends org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl
A custom BytecodeProvider which initializes its ProxyFactory on demand, which leads to faster startup time and less memory usage because only the proxies which are really needed are initialized.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl

    org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl.CloningPropertyCall
  • Constructor Summary

    Constructors
    Constructor
    Description
    ToccoByteBuddyBytecodeProvider(boolean lazyInitialization)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hibernate.bytecode.spi.ProxyFactoryFactory
     

    Methods inherited from class org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl

    getByteBuddyProxyHelper, getEnhancer, getEnhancer, getReflectionOptimizer, getReflectionOptimizer, resetCaches

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ToccoByteBuddyBytecodeProvider

      public ToccoByteBuddyBytecodeProvider(boolean lazyInitialization)
  • Method Details

    • getProxyFactoryFactory

      public org.hibernate.bytecode.spi.ProxyFactoryFactory getProxyFactoryFactory()
      Specified by:
      getProxyFactoryFactory in interface org.hibernate.bytecode.spi.BytecodeProvider
      Overrides:
      getProxyFactoryFactory in class org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl