* Initialises the subsytem by starting all the services that
* it described as provided.
* @param aContext Unique name for the subsystem.
+ * @param aRegistry Registry of service to which the subsystem must register the services it
+ * creates.
* @param aRequiredServices Running services from other
* subsystems that are required by this subsystem.
* @return Services that are running in the subsystem.
*/
- Service[] initialize(String aContext, Service[] aRequiredServices);
+ Service[] start(String aContext, ServiceRegistry aRegistry, Service[] aRequiredServices);
+
+ /**
+ * Stops a service.
+ * @param aContext Context
+ * @param aRegistry Registry from which services must be removed.
+ */
+ void stop(String aContext, ServiceRegistry aRegistry);
/**
* Gets the list of running services in the subsystem.