From 4b5f467cd740b4ad6303083b7e680b1c2b67c20c Mon Sep 17 00:00:00 2001 From: lucio Date: Tue, 6 Dec 2022 12:57:10 +0100 Subject: [PATCH] updated to build with java 11 compatibility --- .classpath | 6 +--- pom.xml | 7 +++- .../service/DTServiceLifecycleMAnager.java | 35 ------------------- ...rs.handlers.application.ApplicationHandler | 1 - 4 files changed, 7 insertions(+), 42 deletions(-) delete mode 100644 src/main/java/org/gcube/data/transfer/service/DTServiceLifecycleMAnager.java delete mode 100644 src/main/resources/META-INF/services/org.gcube.smartgears.handlers.application.ApplicationHandler diff --git a/.classpath b/.classpath index 11def0e..981126a 100644 --- a/.classpath +++ b/.classpath @@ -30,10 +30,6 @@ - - - - - + diff --git a/pom.xml b/pom.xml index 667eb8c..956915f 100644 --- a/pom.xml +++ b/pom.xml @@ -80,7 +80,12 @@ jaxb-core - + + jakarta.activation + jakarta.activation-api + 1.2.2 + + org.slf4j slf4j-api diff --git a/src/main/java/org/gcube/data/transfer/service/DTServiceLifecycleMAnager.java b/src/main/java/org/gcube/data/transfer/service/DTServiceLifecycleMAnager.java deleted file mode 100644 index ba00818..0000000 --- a/src/main/java/org/gcube/data/transfer/service/DTServiceLifecycleMAnager.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.gcube.data.transfer.service; - -import javax.inject.Inject; -import javax.xml.bind.annotation.XmlRootElement; - -import org.gcube.data.transfer.service.transfers.engine.CapabilitiesProvider; -import org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Start; -import org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Stop; -import org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler; - -import lombok.extern.slf4j.Slf4j; - -@XmlRootElement(name = "data-transfer-lifecycle") -@Slf4j -public class DTServiceLifecycleMAnager extends ApplicationLifecycleHandler{ - - @Inject - CapabilitiesProvider capabilities; - - - @Override - public void onStart(Start e) { - - super.onStart(e); - log.info("Capabilities : "+capabilities.get()); - - } - - - @Override - public void onStop(Stop e) { - // TODO Auto-generated method stub - super.onStop(e); - } -} diff --git a/src/main/resources/META-INF/services/org.gcube.smartgears.handlers.application.ApplicationHandler b/src/main/resources/META-INF/services/org.gcube.smartgears.handlers.application.ApplicationHandler deleted file mode 100644 index 98950c9..0000000 --- a/src/main/resources/META-INF/services/org.gcube.smartgears.handlers.application.ApplicationHandler +++ /dev/null @@ -1 +0,0 @@ -org.gcube.data.transfer.service.DTServiceLifecycleMAnager \ No newline at end of file