Class BroadleafServiceRegistryInterceptor

java.lang.Object
com.broadleafcommerce.common.jpa.data.dialect.BroadleafServiceRegistryInterceptor
All Implemented Interfaces:
org.hibernate.service.spi.ServiceContributor

public class BroadleafServiceRegistryInterceptor extends Object implements org.hibernate.service.spi.ServiceContributor
A Hibernate ServiceContributor that registers custom service initiators into Hibernate's bootstrap cycle.

This contributor is discovered automatically by Hibernate (typically via service loading/SPI) and registers the BroadleafDialectFactoryInitiator into the StandardServiceRegistryBuilder. This replaces the standard dialect factory initiation with Broadleaf's custom dialect enhancer wrapper.

See Also:
  • Constructor Details

    • BroadleafServiceRegistryInterceptor

      public BroadleafServiceRegistryInterceptor()
  • Method Details

    • contribute

      public void contribute(org.hibernate.boot.registry.StandardServiceRegistryBuilder builder)
      Contributes services to the Hibernate service registry bootstrap builder.

      Specifically, registers BroadleafDialectFactoryInitiator to override standard dialect creation.

      Specified by:
      contribute in interface org.hibernate.service.spi.ServiceContributor
      Parameters:
      builder - the standard service registry builder