From 350d3301592a7f7c39b26f2e80a76c509c2a9c07 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 4 May 2018 11:22:21 -0500 Subject: [PATCH] HHH-12544 - Add jipijapa hook to plug in specialized caching and transaction services --- .../internal/RegionFactoryInitiator.java | 10 +++++++ .../internal/JtaPlatformInitiator.java | 16 ++++++++++-- .../service/spi/ServiceContributor.java | 3 +++ .../service/CustomJtaPlatformInitiator.java | 26 +++++++++++++++++++ .../service/CustomRegionFactoryInitiator.java | 24 +++++++++++++++++ .../service/ServiceContributorImpl.java | 23 ++++++++++++++++ ...g.hibernate.service.spi.ServiceContributor | 7 +++++ 7 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 hibernate-jipijapa/src/main/java/org/jboss/as/jpa/hibernate5/service/CustomJtaPlatformInitiator.java create mode 100644 hibernate-jipijapa/src/main/java/org/jboss/as/jpa/hibernate5/service/CustomRegionFactoryInitiator.java create mode 100644 hibernate-jipijapa/src/main/java/org/jboss/as/jpa/hibernate5/service/ServiceContributorImpl.java create mode 100644 hibernate-jipijapa/src/main/resources/META-INF/services/org.hibernate.service.spi.ServiceContributor diff --git a/hibernate-core/src/main/java/org/hibernate/cache/internal/RegionFactoryInitiator.java b/hibernate-core/src/main/java/org/hibernate/cache/internal/RegionFactoryInitiator.java index 9a437b7769..d2261b7330 100644 --- a/hibernate-core/src/main/java/org/hibernate/cache/internal/RegionFactoryInitiator.java +++ b/hibernate-core/src/main/java/org/hibernate/cache/internal/RegionFactoryInitiator.java @@ -102,6 +102,11 @@ public class RegionFactoryInitiator implements StandardServiceInitiator