From d7b9d0397cee320639d6cc2fe8f2e6013d56902b Mon Sep 17 00:00:00 2001 From: Juergen Albert Date: Mon, 5 Aug 2024 17:48:23 +0200 Subject: [PATCH] RestUriHandlerProvider will now be registered programmatically Signed-off-by: Juergen Albert --- .../components/ResourceSetUriHandlerConfiguratorComponent.java | 3 +++ .../org/gecko/emf/osgi/components/RestUriHandlerProvider.java | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/org.gecko.emf.osgi/src/org/gecko/emf/osgi/components/ResourceSetUriHandlerConfiguratorComponent.java b/org.gecko.emf.osgi/src/org/gecko/emf/osgi/components/ResourceSetUriHandlerConfiguratorComponent.java index 6bc89461..8db9b9dd 100644 --- a/org.gecko.emf.osgi/src/org/gecko/emf/osgi/components/ResourceSetUriHandlerConfiguratorComponent.java +++ b/org.gecko.emf.osgi/src/org/gecko/emf/osgi/components/ResourceSetUriHandlerConfiguratorComponent.java @@ -46,6 +46,9 @@ public class ResourceSetUriHandlerConfiguratorComponent implements ResourceSetCo private Set handlerProviders = new CopyOnWriteArraySet<>(); private Set mapProviders = new CopyOnWriteArraySet<>(); + public ResourceSetUriHandlerConfiguratorComponent() { + handlerProviders.add(new RestUriHandlerProvider()); + } @Override public void configureResourceSet(ResourceSet resourceSet) { diff --git a/org.gecko.emf.osgi/src/org/gecko/emf/osgi/components/RestUriHandlerProvider.java b/org.gecko.emf.osgi/src/org/gecko/emf/osgi/components/RestUriHandlerProvider.java index 166bf098..1435b9ed 100644 --- a/org.gecko.emf.osgi/src/org/gecko/emf/osgi/components/RestUriHandlerProvider.java +++ b/org.gecko.emf.osgi/src/org/gecko/emf/osgi/components/RestUriHandlerProvider.java @@ -17,14 +17,12 @@ import org.gecko.emf.osgi.UriHandlerProvider; import org.gecko.emf.osgi.urihandler.RestfulURIHandlerImpl; import org.osgi.annotation.versioning.ProviderType; -import org.osgi.service.component.annotations.Component; /** * Provider for the rest-ful URI Handler, that can use BasicAuthentication * @author Mark Hoffmann * @since 27.07.2017 */ -@Component(name="RestUriHandlerProvider", immediate=true, service=UriHandlerProvider.class) @ProviderType public class RestUriHandlerProvider implements UriHandlerProvider {