HelloService helloObject = new HelloService("ladida");
ProvidedInterface helloService = new DefaultProvidedInterface("hello", HelloService.class);
helloService.publish(helloObject);
- system.getRequiredServices()[0].setProvider(helloService);
+ system.getRequiredInterfaces()[0].setProvider(helloService);
system.start();
system.stop();
ProvidedInterface helloService =
new DefaultProvidedInterface("hello", HelloService.class);
helloService.publish(helloObject);
- system.getRequiredServices()[0].setProvider(helloService);
+ system.getRequiredInterfaces()[0].setProvider(helloService);
system.start();
- ProvidedInterface started = system.getProvidedServices()[0];
+ ProvidedInterface started = system.getProvidedInterfaces()[0];
assertNotNull(started.getImplementation());
assertTrue(started.getImplementation() instanceof BlaService);