(no commit message)
[utils] / system / general / src / main / java / org / wamblee / system / SubSystem.java
index 9d68ee4e39a98c312c21790fd8b7ac5d1d03e8ee..16b37aab0936ca61d486c086a9c5bca7b57fd4fb 100644 (file)
@@ -29,11 +29,20 @@ public interface SubSystem {
         * 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.