Last active
June 23, 2020 07:06
-
-
Save nateyolles/e1e809485cbb0ef1e04a445ddf53a6d7 to your computer and use it in GitHub Desktop.
A sample OSGi Declarative Services Servlet Annotation
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
@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