Top Description Methods
org.hibernate.bytecode

public Interface ProxyFactoryFactory

Known Direct Implementers
org.hibernate.bytecode.cglib.ProxyFactoryFactoryImpl, org.hibernate.bytecode.javassist.ProxyFactoryFactoryImpl
Imports
org.hibernate.proxy.ProxyFactory

An interface for factories of proxy factory instances.

Currently used to abstract from the tupizer whether we are using CGLIB or Javassist for lazy proxy generation.

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public BasicProxyFactory

Returns:

The proxy class
buildBasicProxyFactory
(Class<T>
The abstract super class (or null if none).
superClass
,
Class<T>[]
Interfaces to be proxied (or null if none).
interfaces
)

Build a proxy factory for basic proxy concerns.

public ProxyFactory

Returns:

The lazy-load proxy factory.
buildProxyFactory
()

Build a proxy factory specifically for handling runtime lazy loading.

Method Detail

buildBasicProxyFactoryback to summary
public BasicProxyFactory buildBasicProxyFactory(Class<T> superClass, Class<T>[] 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).

Parameters
superClass:Class<T>

The abstract super class (or null if none).

interfaces:Class<T>[]

Interfaces to be proxied (or null if none).

Returns:BasicProxyFactory

The proxy class

buildProxyFactoryback to summary
public ProxyFactory buildProxyFactory()

Build a proxy factory specifically for handling runtime lazy loading.

Returns:ProxyFactory

The lazy-load proxy factory.