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
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.bytecode.spi.ProxyFactoryFactory
Methods inherited from class org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl
getByteBuddyProxyHelper, getEnhancer, getEnhancer, getReflectionOptimizer, getReflectionOptimizer, resetCaches
-
Constructor Details
-
ToccoByteBuddyBytecodeProvider
public ToccoByteBuddyBytecodeProvider(boolean lazyInitialization)
-
-
Method Details
-
getProxyFactoryFactory
public org.hibernate.bytecode.spi.ProxyFactoryFactory getProxyFactoryFactory()- Specified by:
getProxyFactoryFactory
in interfaceorg.hibernate.bytecode.spi.BytecodeProvider
- Overrides:
getProxyFactoryFactory
in classorg.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl
-