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
ThisProxyFactoryimplementation 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.HibernateProxygetProxy(Serializable id, org.hibernate.engine.spi.SharedSessionContractImplementor session)voidpostInstantiate(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:
postInstantiatein 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:
getProxyin interfaceorg.hibernate.proxy.ProxyFactory- Throws:
org.hibernate.HibernateException
-
-