<dependencies>
<!-- OSGi Enroute WebConsole XRay Provider -->
<dependency>
<groupId>osgi.enroute</groupId>
<artifactId>webconsole.xray.provider</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.example</groupId>
<artifactId>library</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
ini
osgi.enroute.webconsole.xray.provider.address=127.0.0.1
osgi.enroute.webconsole.xray.provider.port=8080
com.example.library.config=value
import org.osgi.service.component.annotations.Component;
@Component(service = HelloService.class)
public class HelloServiceImpl implements HelloService {
@Override
public String sayHello(String name) {
LibraryClass library = new LibraryClass();
String result = library.process(name);
return "Hello, " + result + "!";
}
}