Skip to content

Instantly share code, notes, and snippets.

@nateyolles
Last active June 23, 2020 07:06
Show Gist options
  • Save nateyolles/e1e809485cbb0ef1e04a445ddf53a6d7 to your computer and use it in GitHub Desktop.
Save nateyolles/e1e809485cbb0ef1e04a445ddf53a6d7 to your computer and use it in GitHub Desktop.
A sample OSGi Declarative Services Servlet Annotation
@Component(
service = Servlet.class,
property = {
"sling.servlet.extensions=html",
"sling.servlet.selectors=foo",
"sling.servlet.paths=/bin/foo",
"sling.servlet.paths=/bin/bar",
"sling.servlet.methods=get",
"sling.servlet.resourceTypes=nt:file",
"sling.servlet.resourceTypes=project/components/component"
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment