Skip to content

Instantly share code, notes, and snippets.

@nateyolles
Created May 25, 2017 20:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nateyolles/51988295d1555f719e2c4723c359d951 to your computer and use it in GitHub Desktop.
Save nateyolles/51988295d1555f719e2c4723c359d951 to your computer and use it in GitHub Desktop.
A sample AEM SlingServlet Felix SCR Annotation
@SlingServlet(
metatype = true,
paths = {
"/bin/foo",
"/bin/bar"
},
extensions = {"html"},
selectors = {"foo"},
resourceTypes = {"nt:file", "project/components/component"}
methods = "GET",
label = "Annotation Demo Servlet",
description = "Sample servlet using Felix SCR annotations"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment