Skip to content

Commit

Permalink
Configured Declarative Services, this is much nicer to work with than
Browse files Browse the repository at this point in the history
ServiceTracker.
  • Loading branch information
neotyk committed Mar 16, 2009
1 parent 663539c commit 73f08b8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
11 changes: 10 additions & 1 deletion pom.xml
Expand Up @@ -71,7 +71,10 @@
<Import-Package>*</Import-Package>
<Import-Service>org.osgi.service.http.HttpService</Import-Service>
<Private-Package>pl.kungfoo.grizzly.osgi.httpservice.gitorial.impl</Private-Package>
<Bundle-Activator>pl.kungfoo.grizzly.osgi.httpservice.gitorial.impl.Activator</Bundle-Activator>
<Service-Component>
pl.kungfoo.grizzly.osgi.httpservice.gitorial.impl.RegisterServletComponent;
http=org.osgi.service.http.HttpService
</Service-Component>
</instructions>
</configuration>
</plugin>
Expand Down Expand Up @@ -99,6 +102,12 @@
<artifactId>grizzly-httpservice-bundle</artifactId>
<version>${grizzly.version}</version>
</dependency>
<!-- Felix Declarative Service -->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr</artifactId>
<version>1.0.6</version>
</dependency>
</dependencies>

<repositories>
Expand Down

This file was deleted.

@@ -0,0 +1,11 @@
package pl.kungfoo.grizzly.osgi.httpservice.gitorial.impl;

import org.osgi.service.http.*;

public class RegisterServletComponent {

public void setHttp(HttpService http) {
System.out.println("Got Http Service: " + http);
}
}

0 comments on commit 73f08b8

Please sign in to comment.