Created
March 20, 2020 03:42
-
-
Save steinarb/d9b1a88e47a75e5fbe104ee40935c3d0 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
package no.priv.bang.demos.jerseyinkaraf.webapi; | |
@Component(service=Servlet.class, property={"alias=/jerseyinkaraf/api"}) | |
public class CounterServiceServlet extends JerseyServlet { | |
@Reference | |
public void setCounter(Counter counter) { | |
addInjectedOsgiService(Counter.class, counter); | |
} | |
@Override | |
@Reference | |
public void setLogService(LogService logservice) { | |
super.setLogService(logservice); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment