Class QuarkusProxyFactory
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.customized.QuarkusProxyFactory
-
- All Implemented Interfaces:
org.hibernate.proxy.ProxyFactory
public final class QuarkusProxyFactory extends Object implements org.hibernate.proxy.ProxyFactory
ThisProxyFactory
implementation is very similar to theByteBuddyProxyFactory
, except the class definitions of the proxies have been built upfront so to allow usage of enhanced proxies in native images.
-
-
Constructor Summary
Constructors Constructor Description QuarkusProxyFactory(ProxyDefinitions proxyClassDefinitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.proxy.HibernateProxy
getProxy(Serializable id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
void
postInstantiate(String entityName, Class persistentClass, Set<Class> interfaces, Method getIdentifierMethod, Method setIdentifierMethod, org.hibernate.type.CompositeType componentIdType)
-
-
-
Constructor Detail
-
QuarkusProxyFactory
public QuarkusProxyFactory(ProxyDefinitions proxyClassDefinitions)
-
-
Method Detail
-
postInstantiate
public void postInstantiate(String entityName, Class persistentClass, Set<Class> interfaces, Method getIdentifierMethod, Method setIdentifierMethod, org.hibernate.type.CompositeType componentIdType) throws org.hibernate.HibernateException
- Specified by:
postInstantiate
in interfaceorg.hibernate.proxy.ProxyFactory
- Throws:
org.hibernate.HibernateException
-
getProxy
public org.hibernate.proxy.HibernateProxy getProxy(Serializable id, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException
- Specified by:
getProxy
in interfaceorg.hibernate.proxy.ProxyFactory
- Throws:
org.hibernate.HibernateException
-
-