Annotation Type SlingServletName
@ComponentPropertyType
public @interface SlingServletName
Component Property Type (as defined by OSGi DS 1.4) for Sling Servlets.
Takes care of writing the relevant service properties to set a name for a Sling Servlet.
Must be combined with either
SlingServletResourceTypes
or SlingServletPaths
.-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionContaining the name of the servlet. -
Field Summary
Fields
-
Field Details
-
PREFIX_
Prefix for every property being generated from the annotations elements (as defined in OSGi 7 Compendium, 112.8.2.1)- See Also:
-
-
Element Details
-
servletName
String servletNameContaining the name of the servlet. If this is empty (or not set), thecomponent.name
property, theservice.pid
or theservice.id
is used. At least the latter is always ensured by the OSGi framework so a name is always set!- Returns:
- the servlet name
- See Also:
-