Skip to content

Instantly share code, notes, and snippets.

@chbaranowski
Created February 22, 2015 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chbaranowski/6771ec718c3555eb6d6b to your computer and use it in GitHub Desktop.
Save chbaranowski/6771ec718c3555eb6d6b to your computer and use it in GitHub Desktop.
RequireCapability in a REST SampleRessource
@Component
@Path("/echo")
@RequireCapability(
ns="osgi.whiteboard",
filter="(osgi.whiteboard=java.ee.jaxrs)",
effective="active"
)
public class SampleRessource {
@GET
public String echo(){
return "OK";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment