Skip to content

Commit

Permalink
RestUriHandlerProvider will now be registered programmatically
Browse files Browse the repository at this point in the history
Signed-off-by: Juergen Albert <[email protected]>
  • Loading branch information
juergen-albert committed Aug 5, 2024
1 parent 4c492e1 commit d7b9d03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public class ResourceSetUriHandlerConfiguratorComponent implements ResourceSetCo
private Set<UriHandlerProvider> handlerProviders = new CopyOnWriteArraySet<>();
private Set<UriMapProvider> mapProviders = new CopyOnWriteArraySet<>();

public ResourceSetUriHandlerConfiguratorComponent() {
handlerProviders.add(new RestUriHandlerProvider());
}

@Override
public void configureResourceSet(ResourceSet resourceSet) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit d7b9d03

Please sign in to comment.