This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.models.api-1.2.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-api.git
commit c5b00fa846f09fffa0dfc8129982cfc6c3843f9c Author: Stefan Seifert <[email protected]> AuthorDate: Tue Oct 21 16:12:24 2014 +0000 SLING-4083 Enable SlingObject injector to inject all context objects when a request is attached to the current thread git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/api@1633409 13f79535-47bb-0310-9956-ffa450edef68 --- .../annotations/injectorspecific/SlingObject.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/sling/models/annotations/injectorspecific/SlingObject.java b/src/main/java/org/apache/sling/models/annotations/injectorspecific/SlingObject.java index 07a7c7c..50d3f82 100644 --- a/src/main/java/org/apache/sling/models/annotations/injectorspecific/SlingObject.java +++ b/src/main/java/org/apache/sling/models/annotations/injectorspecific/SlingObject.java @@ -52,31 +52,35 @@ import org.apache.sling.models.spi.injectorspecific.InjectAnnotation; * <td>{@link Resource}</td> * <td>Resource</td> * <td style="text-align:center">X</td> - * <td></td> + * <td style="text-align:center">X*</td> * <td style="text-align:center">X</td> * </tr> * <tr style="background-color:#eee"> * <td>{@link SlingHttpServletRequest}</td> * <td>Sling request</td> * <td style="text-align:center">X</td> - * <td></td> - * <td></td> + * <td style="text-align:center">X*</td> + * <td style="text-align:center">X*</td> * </tr> * <tr> * <td>{@link SlingHttpServletResponse}</td> * <td>Sling response</td> * <td style="text-align:center">X</td> - * <td></td> - * <td></td> + * <td style="text-align:center">X*</td> + * <td style="text-align:center">X*</td> * </tr> * <tr style="background-color:#eee"> * <td>{@link SlingScriptHelper}</td> * <td>Sling script helper</td> * <td style="text-align:center">X</td> - * <td></td> - * <td></td> + * <td style="text-align:center">X*</td> + * <td style="text-align:center">X*</td> * </tr> * </table> + * <p> + * In case of X* the class cannot be derived from the adaptable, but is derived from the request of the current thread + * set by a servlet filter. If the current thread is not associated with a request nothing is injected. + * </p> */ @Target({ METHOD, FIELD, PARAMETER }) @Retention(RUNTIME) -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
