Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

OSGi compatibility tasks #21

Open
3 tasks
mattrpav opened this issue Jul 12, 2017 · 2 comments
Open
3 tasks

OSGi compatibility tasks #21

mattrpav opened this issue Jul 12, 2017 · 2 comments
Milestone

Comments

@mattrpav
Copy link
Contributor

mattrpav commented Jul 12, 2017

  • Update Class.forName() references to specify class loaders
  • Test installation and bundle wiring in an OSGi runtime (such as Karaf)
  • Write an integration test that confirms data processing in Karaf or other OSGi runtime
@mattrpav
Copy link
Contributor Author

mattrpav commented Jul 24, 2017

A couple routine(s) to detect running within OSGi:

Option A:

public static boolean detectOsgi() throws Exception {
try {
First.class.getClassLoader().loadClass("org.osgi.framework.BundleReference");
return true;
} catch (Exception e) {
// fail.. not in OSGi
System.out.println("\n\n\t\t No OSGi detected: " + e.getMessage());
}
return false;
}

Option B:

this.getClass().getClassLoader() instanceof org.osgi.framework.BundleReference

@mattrpav
Copy link
Contributor Author

This task would need to be completed for Fuse 7

@mattrpav mattrpav added this to the Priority 0 milestone Sep 27, 2017
@jpav jpav self-assigned this Sep 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants