<dependency>
<groupId>osgi.enroute.webresource.angular</groupId>
<artifactId>osgi.enroute.webresource.angular</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
-runbundles: osgi.identity;osgi.identity="osgi.enroute.webresource.angular";version=1.0.0
import org.osgi.service.component.annotations.*;
import osgi.enroute.webresource.angular.annotations.*;
@Component(name = "hello.component")
@RequireWebResource("/path/to/myComponent.js")
public class MyComponent {
public MyComponent() {
}
// ...
}
import org.osgi.service.component.annotations.*;
import osgi.enroute.webresource.angular.api.*;
@Component(name = "hello.service")
public class MyService {
@Reference(target = "(name=hello.component)")
private MyComponent myComponent;
public MyService() {
}
public void useComponent() {
// ...
}
}