some major refactoring.
[utils] / system / general / src / main / java / org / wamblee / system / Component.java
index afbed94cd677fb04e8e049cddd25d3e53132b756..4083c5bd6fc9e28f2e4b04e096e659d06b5d0d9b 100644 (file)
@@ -28,24 +28,21 @@ public interface Component {
         * Gets a description of the provided interfaces. 
         * @return Provided interfaces. 
         */
-       ProvidedInterfaceDescriptor[] getProvidedServices();
+       ProvidedInterface[] getProvidedServices();
        
        /**
         * Gets a description of the required interfaces. 
         * @return Required interfaces. 
         */
-       RequiredInterfaceDescriptor[] getRequiredServices();
+       RequiredInterface[] getRequiredServices();
 
        
        /**
         * Initialises the subsytem by starting all the services that
         * it described as provided. 
-        * @param aContext Unique name for the subsystem. 
-        * @param aRequiredServices Running services from other 
-        * subsystems that are required by this subsystem. 
-        * @return Services that are running in the subsystem. 
+        * @param aContext Unique name for the subsystem.  
         */
-       Service[] start(String aContext, Service[] aRequiredServices);
+       void start(String aContext);
        
        /**
         * Stops a subsystem. 
@@ -59,5 +56,5 @@ public interface Component {
         * {@link #initialize(String, Service[])} has been called. 
         * @return
         */
-       Service[] getRunningServices();
+       ProvidedInterface[] getRunningServices();
 }