-
-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OSGI] Annotation Scanning Broken #1539
Comments
+1 |
@pires Can you try with |
@jfarcand is RC1 enough? Latest available version in central maven. |
Seems not. Building latest commit in master. Will come back after some testing! |
Doesn't work. |
Hint: If you don't want to build SNAPSHOTs yourself, try https://github.com/Atmosphere/atmosphere/wiki/Downloading-Atmosphere%27s-SNAPSHOT |
+1 on this as well. Any progress? |
@metamorph Contribution welcomed...it's a missing features so someone will have to jump in and do the work :-) |
Classpath scanning is considered a bad practice in OSGi. Each bundle has it's own class loader, and there is no API to reliably scan within the "classpath" of these class loaders. In other words, I don't think this can be fixed in a non-hacky way. A much better mechanism would be to register annotated classes in the service registry. A listener can pick up new registrations in the registry and register those classes to Atmosphere. In the Amdatu project we did something similar for JAX-RS: https://bitbucket.org/amdatu/amdatu-web/src/226d62c00ff28f9e4bf78ea3f5687865a9390caf/org.amdatu.web.rest/?at=master |
The text was updated successfully, but these errors were encountered: