Skip to content

Instantly share code, notes, and snippets.

@dejanb
Created January 9, 2014 16:53
Show Gist options
  • Save dejanb/8337613 to your computer and use it in GitHub Desktop.
Save dejanb/8337613 to your computer and use it in GitHub Desktop.
val filter = FrameworkUtil.createFilter("(&(objectClass=org.osgi.service.url.URLStreamHandlerService)(url.handler.protocol=profile))");
val urlHandler = new ServiceTracker[URLStreamHandlerService,URLStreamHandlerService](bundleContext, filter, null)
urlHandler.open()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment