~/lightning

Lightning Talk: New Sling Servlet Annotations

Lightningat adaptTo() 2018 · 2018-09-10..09-12· [java, software-architecture]
links:none on file
slides:none on file

New Sling servlet annotations replace the deprecated SlingServlet and clunky OSGi R5 annotations and require Declarative Services 1.3, BND/maven-bundle-plugin v4+ and an added maven dependency (supported since AEM 6.1). They register by resourceType or path, show that relative resourceType prepends /libs so registrations can miss, only register GET/HEAD by default (POST must be declared), and enforce selector order (first selector must match), with integration tests provided as the authoritative examples.

AI-written summary · about

  1. 0:00Start
  2. 2:31New Annotations
  3. 2:44Sling Servlet Resource Types
  4. 4:45Sling Servlet Paths
  5. 5:12Quiz
  6. 7:32Get Request with Two Different Selectors
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.