new HashMap<String, ProvidedInterface>(),
new HashMap<RequiredInterface, String>());
system.start();
- ProvidedInterface[] services = system.getRunningServices();
+ ProvidedInterface[] services = system.getRunningInterfaces();
assertEquals(0, services.length);
system.stop();
new String[] { HELLO_SERVICE_SPRING_XML }, provided,
new HashMap<RequiredInterface, String>());
system.start();
- ProvidedInterface[] services = system.getRunningServices();
+ ProvidedInterface[] services = system.getRunningInterfaces();
assertEquals(1, services.length);
assertTrue(services[0].getImplementation() instanceof HelloService);
assertEquals("Hello world!", ((HelloService)services[0].getImplementation())
system.addProperties(props);
system.start();
- ProvidedInterface[] services = system.getRunningServices();
+ ProvidedInterface[] services = system.getRunningInterfaces();
assertEquals("Property Value",
((HelloService)services[0].getImplementation()).say());
}
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);