Class ProxyFactoryFactoryImpl
- java.lang.Object
-
- org.hibernate.bytecode.internal.bytebuddy.ProxyFactoryFactoryImpl
-
- All Implemented Interfaces:
Serializable
,ProxyFactoryFactory
,Service
public class ProxyFactoryFactoryImpl extends Object implements ProxyFactoryFactory
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProxyFactoryFactoryImpl(ByteBuddyState byteBuddyState, ByteBuddyProxyHelper byteBuddyProxyHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicProxyFactory
buildBasicProxyFactory(Class superClassOrInterface)
Build a proxy factory for basic proxy concerns.ProxyFactory
buildProxyFactory(SessionFactoryImplementor sessionFactory)
Build a proxy factory specifically for handling runtime lazy loading.
-
-
-
Constructor Detail
-
ProxyFactoryFactoryImpl
public ProxyFactoryFactoryImpl(ByteBuddyState byteBuddyState, ByteBuddyProxyHelper byteBuddyProxyHelper)
-
-
Method Detail
-
buildProxyFactory
public ProxyFactory buildProxyFactory(SessionFactoryImplementor sessionFactory)
Description copied from interface:ProxyFactoryFactory
Build a proxy factory specifically for handling runtime lazy loading.- Specified by:
buildProxyFactory
in interfaceProxyFactoryFactory
- Returns:
- The lazy-load proxy factory.
-
buildBasicProxyFactory
public BasicProxyFactory buildBasicProxyFactory(Class superClassOrInterface)
Description copied from interface:ProxyFactoryFactory
Build a proxy factory for basic proxy concerns. The return should be capable of properly handling newInstance() calls.Should build basic proxies essentially equivalent to JDK proxies in terms of capabilities, but should be able to deal with abstract super classes in addition to proxy interfaces.
Must pass in either a superClass or an interface.
- Specified by:
buildBasicProxyFactory
in interfaceProxyFactoryFactory
- Parameters:
superClassOrInterface
- The abstract super class, or the interface to be proxied.- Returns:
- The proxy class
-
-