Added author to all java files with class comments.
[utils] / system / general / src / main / java / org / wamblee / system / SubSystem.java
index 9d68ee4e39a98c312c21790fd8b7ac5d1d03e8ee..4e79ed76830f6eb1e625b1dfd0ec5e662d0330e2 100644 (file)
@@ -3,6 +3,8 @@ package org.wamblee.system;
 /**
  * A sub system represents a part of a system that required a 
  * number of services and provides a number of services. 
+ *
+ * @author Erik Brakkee
  */
 public interface SubSystem {
        
@@ -16,13 +18,13 @@ public interface SubSystem {
         * Gets a description of the provided interfaces. 
         * @return Provided interfaces. 
         */
-       ServiceDescriptor[] getProvidedServices();
+       ProvidedServiceDescriptor[] getProvidedServices();
        
        /**
         * Gets a description of the required interfaces. 
         * @return Required interfaces. 
         */
-       ServiceDescriptor[] getRequiredServices();
+       RequiredServiceDescriptor[] getRequiredServices();
 
        
        /**
@@ -33,7 +35,12 @@ public interface SubSystem {
         * 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, Service[] aRequiredServices);
+       
+       /**
+        * Stops a subsystem. 
+        */
+       void stop(); 
        
        /**
         * Gets the list of running services in the subsystem.