You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/14 17:56:12 UTC

[jira] [Resolved] (SLING-2237) inject OSGi services into Java script-based servlets

     [ https://issues.apache.org/jira/browse/SLING-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Edelson resolved SLING-2237.
-----------------------------------

    Resolution: Fixed
    
> 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
>             Fix For: Scripting Java 2.0.2
>
>
> 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<ServiceInterface> list
> @Inject
> private Collection<ServiceInterface> 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