From 222a89086e9d90fde4a451c531cb205e98b4d583 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Wed, 27 Jun 2018 15:19:16 +0200 Subject: [PATCH] Version update --- .../smpserver/data/sql/spi/SQLSMPBackendRegistrarSPI.java | 3 +-- .../smpserver/data/xml/spi/XMLSMPBackendRegistrarSPI.java | 3 +-- pom.xml | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/peppol-smp-server-sql/src/main/java/com/helger/peppol/smpserver/data/sql/spi/SQLSMPBackendRegistrarSPI.java b/peppol-smp-server-sql/src/main/java/com/helger/peppol/smpserver/data/sql/spi/SQLSMPBackendRegistrarSPI.java index 0bce874d0..3786a2ef7 100644 --- a/peppol-smp-server-sql/src/main/java/com/helger/peppol/smpserver/data/sql/spi/SQLSMPBackendRegistrarSPI.java +++ b/peppol-smp-server-sql/src/main/java/com/helger/peppol/smpserver/data/sql/spi/SQLSMPBackendRegistrarSPI.java @@ -13,7 +13,6 @@ import javax.annotation.Nonnull; import com.helger.commons.annotation.IsSPIImplementation; -import com.helger.commons.factory.FactoryNewInstance; import com.helger.peppol.smpserver.backend.ISMPBackendRegistrarSPI; import com.helger.peppol.smpserver.backend.ISMPBackendRegistry; import com.helger.peppol.smpserver.data.sql.mgr.SQLManagerProvider; @@ -28,6 +27,6 @@ public final class SQLSMPBackendRegistrarSPI implements ISMPBackendRegistrarSPI { public void registerSMPBackend (@Nonnull final ISMPBackendRegistry aRegistry) { - aRegistry.registerSMPBackend ("sql", FactoryNewInstance.create (SQLManagerProvider.class)); + aRegistry.registerSMPBackend ("sql", SQLManagerProvider::new); } } diff --git a/peppol-smp-server-xml/src/main/java/com/helger/peppol/smpserver/data/xml/spi/XMLSMPBackendRegistrarSPI.java b/peppol-smp-server-xml/src/main/java/com/helger/peppol/smpserver/data/xml/spi/XMLSMPBackendRegistrarSPI.java index b47f12f81..f49b8000a 100644 --- a/peppol-smp-server-xml/src/main/java/com/helger/peppol/smpserver/data/xml/spi/XMLSMPBackendRegistrarSPI.java +++ b/peppol-smp-server-xml/src/main/java/com/helger/peppol/smpserver/data/xml/spi/XMLSMPBackendRegistrarSPI.java @@ -19,7 +19,6 @@ import javax.annotation.Nonnull; import com.helger.commons.annotation.IsSPIImplementation; -import com.helger.commons.factory.FactoryNewInstance; import com.helger.peppol.smpserver.backend.ISMPBackendRegistrarSPI; import com.helger.peppol.smpserver.backend.ISMPBackendRegistry; import com.helger.peppol.smpserver.data.xml.mgr.XMLManagerProvider; @@ -34,6 +33,6 @@ public final class XMLSMPBackendRegistrarSPI implements ISMPBackendRegistrarSPI { public void registerSMPBackend (@Nonnull final ISMPBackendRegistry aRegistry) { - aRegistry.registerSMPBackend ("xml", FactoryNewInstance.create (XMLManagerProvider.class)); + aRegistry.registerSMPBackend ("xml", () -> new XMLManagerProvider ()); } } diff --git a/pom.xml b/pom.xml index be54be28b..75218fab8 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,7 @@ 2.2.10 2.11.0 2.27 - 2.7.1 + 2.7.2