Return-Path: X-Original-To: apmail-sling-dev-archive@www.apache.org Delivered-To: apmail-sling-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C17147E97 for ; Wed, 5 Oct 2011 00:15:56 +0000 (UTC) Received: (qmail 61944 invoked by uid 500); 5 Oct 2011 00:15:56 -0000 Delivered-To: apmail-sling-dev-archive@sling.apache.org Received: (qmail 61891 invoked by uid 500); 5 Oct 2011 00:15:56 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 61883 invoked by uid 99); 5 Oct 2011 00:15:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 00:15:56 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 00:15:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 869572A7390 for ; Wed, 5 Oct 2011 00:15:34 +0000 (UTC) Date: Wed, 5 Oct 2011 00:15:34 +0000 (UTC) From: "Justin Edelson (Created) (JIRA)" To: dev@sling.apache.org Message-ID: <1557063162.10050.1317773734553.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (SLING-2237) inject OSGi services into Java script-based servlets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 inject OSGi services into Java script-based servlets ---------------------------------------------------- Key: SLING-2237 URL: https://issues.apache.org/jira/browse/SLING-2237 Project: Sling Issue Type: Improvement Components: Scripting Reporter: Justin Edelson Assignee: Justin Edelson originally discussed here: http://markmail.org/thread/yv5re37b7nopboum In a Java scripted servlet (i.e. a foo.java resource which is treated like a script), it would be helpful to be able to get OSGi services injected. Use cases: @Inject private ServiceInterface serviceInterface; @Inject private ServiceInterface[] array; @Inject private List list @Inject private Collection list (special) @Inject private SlingScriptingHelper slingScriptingHelper -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira