public interface ProxyFactoryFactory
An interface for factories of proxy factory
instances.
<p/>
Currently used to abstract from the tupizer whether we are using Byte Buddy or
Javassist for lazy proxy generation.
Modifier and Type | Method and Description |
---|---|
BasicProxyFactory |
buildBasicProxyFactory(Class superClass,
Class[] interfaces)
Build a proxy factory for basic proxy concerns.
|
ProxyFactory |
buildProxyFactory(SessionFactoryImplementor sessionFactory)
Build a proxy factory specifically for handling runtime
lazy loading.
|
ProxyFactory buildProxyFactory(SessionFactoryImplementor sessionFactory)
Build a proxy factory specifically for handling runtime lazy loading.
BasicProxyFactory buildBasicProxyFactory(Class superClass, Class[] interfaces)
Build a proxy factory for basic proxy concerns. The return should be capable of properly handling newInstance() calls. <p/> 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. <p/> Must pass in either superClass or interfaces (or both).
superClass
- The abstract super class (or null if none).interfaces
- Interfaces to be proxied (or null if none).Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.