Package org.hibernate.bytecode.spi
Interface ProxyFactoryFactory
-
- All Superinterfaces:
Serializable
,Service
public interface ProxyFactoryFactory extends Service
An interface for factories ofproxy factory
instances. Currently used to abstract from the tuplizer whether we are using Byte Buddy or possibly another implementation (in the future?) for lazy proxy generation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BasicProxyFactory
buildBasicProxyFactory(Class superClassOrInterface)
Build a proxy factory for basic proxy concerns.BasicProxyFactory
buildBasicProxyFactory(Class superClass, Class[] interfaces)
Deprecated.UsebuildBasicProxyFactory(Class)
instead.ProxyFactory
buildProxyFactory(SessionFactoryImplementor sessionFactory)
Build a proxy factory specifically for handling runtime lazy loading.
-
-
-
Method Detail
-
buildProxyFactory
ProxyFactory buildProxyFactory(SessionFactoryImplementor sessionFactory)
Build a proxy factory specifically for handling runtime lazy loading.- Returns:
- The lazy-load proxy factory.
-
buildBasicProxyFactory
@Deprecated BasicProxyFactory buildBasicProxyFactory(Class superClass, Class[] interfaces)
Deprecated.UsebuildBasicProxyFactory(Class)
instead.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 superClass or interfaces (or both).- Parameters:
superClass
- The abstract super class (or null if none).interfaces
- Interfaces to be proxied (or null if none).- Returns:
- The proxy class
-
buildBasicProxyFactory
BasicProxyFactory buildBasicProxyFactory(Class superClassOrInterface)
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.- Parameters:
superClassOrInterface
- The abstract super class, or the interface to be proxied.- Returns:
- The proxy class
-
-