接口 ProxyFactoryFactory
-
- 所有超级接口:
Serializable,Service
public interface ProxyFactoryFactory extends Service
An interface for factories ofproxy factoryinstances. Currently used to abstract from the tuplizer whether we are using Byte Buddy or Javassist for lazy proxy generation.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 BasicProxyFactorybuildBasicProxyFactory(Class superClass, Class[] interfaces)Build a proxy factory for basic proxy concerns.ProxyFactorybuildProxyFactory(SessionFactoryImplementor sessionFactory)Build a proxy factory specifically for handling runtime lazy loading.
-
-
-
方法详细资料
-
buildProxyFactory
ProxyFactory buildProxyFactory(SessionFactoryImplementor sessionFactory)
Build a proxy factory specifically for handling runtime lazy loading.- 返回:
- The lazy-load proxy factory.
-
buildBasicProxyFactory
BasicProxyFactory buildBasicProxyFactory(Class superClass, Class[] interfaces)
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).- 参数:
superClass- The abstract super class (or null if none).interfaces- Interfaces to be proxied (or null if none).- 返回:
- The proxy class
-
-