Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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