Created
July 9, 2014 15:07
-
-
Save hakandilek/dd47f41cae26ba2f42c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jersey resources | |
Map<String, Object> resources = ctx.getBeansWithAnnotation(Path.class); | |
for (Map.Entry<String, Object> entry : resources.entrySet()) { | |
Object resource = entry.getValue(); | |
Class<? extends Object> cls = resource.getClass(); | |
if (cls.isAnnotationPresent(Path.class)) | |
System.out.println(cls); | |
jersey.register(resource); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment