HelloService.class);
Scope scope = new DefaultScope(new ProvidedInterface[] { helloService });
scope.publishInterface(helloService, helloObject);
- system.getRequiredInterfaces()[0].setProvider(helloService);
+ system.getRequiredInterfaces().get(0).setProvider(helloService);
Scope runtime = system.start(scope);
system.stop(runtime);
HelloService.class);
Scope scope = new DefaultScope(new ProvidedInterface[] { helloService });
scope.publishInterface(helloService, helloObject);
- system.getRequiredInterfaces()[0].setProvider(helloService);
+ system.getRequiredInterfaces().get(0).setProvider(helloService);
Scope runtime = system.start(scope);
ProvidedInterface started = runtime.getProvidedInterfaces()[0];
assertSame(service, service2);
Object floatsvc = _externalScope.getInterfaceImplementation(system
- .getProvidedInterfaces()[1], Object.class);
+ .getProvidedInterfaces().get(1), Object.class);
assertTrue(floatsvc instanceof Float);
assertTrue((((Float) floatsvc).floatValue() - 100.345f) < 0.00001);
Scope scope = new DefaultScope(new ProvidedInterface[] { helloService });
scope.publishInterface(helloService, helloObject);
scope.publishInterface(floatService, 100.234f);
- system.getRequiredInterfaces()[0].setProvider(helloService);
- system.getRequiredInterfaces()[1].setProvider(floatService);
+ system.getRequiredInterfaces().get(0).setProvider(helloService);
+ system.getRequiredInterfaces().get(1).setProvider(floatService);
Scope runtime = system.start(scope);
system.stop(runtime);