Created
February 22, 2015 17:01
-
-
Save chbaranowski/d8f2dddb2f00f58dca7c 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
import javax.ws.rs.*; | |
import aQute.bnd.annotation.component.Component; | |
import aQute.bnd.annotation.headers.RequireCapability; | |
@Component | |
@Path("/echo") | |
@Requieres.JAXRS_Whiteboard | |
public class SampleRessource { | |
@GET | |
public String echo(){ | |
return "OK"; | |
} | |
} | |
interface Requieres { | |
@RequireCapability( | |
ns="osgi.whiteboard", | |
filter="(osgi.whiteboard=java.ee.jaxrs)", | |
effective="active" | |
) | |
@interface JAXRS_Whiteboard { } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment