Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @Path("a")
  2. class A {}
  3.  
  4. Class ConfigA extends jersey.server.ResourceConfig...{
  5. public ConfigA {
  6. register(A.class)
  7. }
  8. }
  9.  
  10. @Path("a") //SAME PATH as A
  11. Class B extends A{}
  12.  
  13. Class ConfigB extends ConfigA{
  14. public ConfigB(){
  15. super();
  16. //TODO Unregister the class A
  17. register(B.class)
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement