Skip to content

Commit

Permalink
Removed @Inject annotation entirely.
Browse files Browse the repository at this point in the history
Added support for the upnpcallback servlet to work with both Servlet 2.4 (Synchronously) and Servlet 3.0 (Asynchronously).
Made sure the upnpcallback servlet does not use the default HttpContext which may be secured, but instead always an unsecured one.

Whenever HttpService disappears/appears shutdown is performed
synchronously and startup asynchronously after a delay of 1500 ms in order
to properly reinitialize jupnp.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

	modified:   bundles/org.jupnp/OSGI-INF/upnp.xml
  • Loading branch information
iilievdev committed Jun 10, 2015
1 parent 4ea4773 commit c988925
Show file tree
Hide file tree
Showing 25 changed files with 1,149 additions and 591 deletions.
1 change: 0 additions & 1 deletion bundles/org.jupnp/OSGI-INF/osgiserviceconfiguration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
-->
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="activate" configuration-policy="require" deactivate="deactivate" immediate="false" name="org.jupnp">
<implementation class="org.jupnp.OSGiUpnpServiceConfiguration"/>
<reference bind="setHttpService" cardinality="0..1" interface="org.osgi.service.http.HttpService" name="HttpService" policy="dynamic" unbind="unsetHttpService"/>
<service>
<provide interface="org.jupnp.OSGiUpnpServiceConfiguration"/>
</service>
Expand Down
1 change: 1 addition & 0 deletions bundles/org.jupnp/OSGI-INF/upnp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
<provide interface="org.jupnp.UpnpService"/>
</service>
<reference bind="setOSGiUpnpServiceConfiguration" cardinality="1..1" interface="org.jupnp.OSGiUpnpServiceConfiguration" name="OSGiUpnpServiceConfiguration" policy="static" unbind="unsetOSGiUpnpServiceConfiguration"/>
<reference bind="setHttpService" cardinality="0..1" interface="org.osgi.service.http.HttpService" name="HttpService" policy="dynamic" unbind="unsetHttpService"/>
</scr:component>
3 changes: 1 addition & 2 deletions bundles/org.jupnp/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ output.. = target/classes/
bin.includes = META-INF/,\
.,\
OSGI-INF/
source.. = src/main/java/
jars.extra.classpath = platform:/plugin/javax.inject
source.. = src/main/java/
Loading

0 comments on commit c988925

Please sign in to comment.