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
This ProxyFactory implementation is very similar to the ByteBuddyProxyFactory, except the class definitions of the proxies have been built upfront so to allow usage of enhanced proxies in native images.
  • Constructor Details

    • QuarkusProxyFactory

      public QuarkusProxyFactory(ProxyDefinitions proxyClassDefinitions)
  • Method Details

    • 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 interface org.hibernate.proxy.ProxyFactory
      Throws:
      org.hibernate.HibernateException
    • getProxy

      public org.hibernate.proxy.HibernateProxy getProxy(Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException
      Specified by:
      getProxy in interface org.hibernate.proxy.ProxyFactory
      Throws:
      org.hibernate.HibernateException