/**
* Starts the subsystems.
+ * @param aRegistry Service registry to which created services must be registered.
* @param aRequiredServices Services that are available from
* other systems that have been started before.
*/
- public void start(Service[] aRequiredServices) {
+ public void start(ServiceRegistry aRegistry, Service[] aRequiredServices) {
LOG.info("Starting '" + _context + "'");
Map<ServiceDescriptor, Service> allProvided = new HashMap<ServiceDescriptor, Service>();
}
services.add(required);
}
- Service[] provided = system.initialize(_context, services
+ Service[] provided = system.start(_context, aRegistry, services
.toArray(new Service[0]));
for (Service service : provided) {
allProvided.put(service.getDescriptor(), service);