rename service to interface.
[utils] / system / general / src / main / java / org / wamblee / system / core / Component.java
index b9b5dad4e5d9cd7ebcf461126ec379b447987693..9409e44f6b0cb9a1c2eef2d95cc6ce9ebd3c5e3b 100644 (file)
@@ -56,13 +56,13 @@ public interface Component {
         * Gets a description of the provided interfaces. 
         * @return Provided interfaces. 
         */
-       ProvidedInterface[] getProvidedServices();
+       ProvidedInterface[] getProvidedInterfaces();
        
        /**
         * Gets a description of the required interfaces. 
         * @return Required interfaces. 
         */
-       RequiredInterface[] getRequiredServices();
+       RequiredInterface[] getRequiredInterfaces();
 
        
        /**
@@ -71,11 +71,6 @@ public interface Component {
         */
        void start();
        
-       /**
-        * Stops a subsystem. 
-        */
-       void stop(); 
-       
        /**
         * Gets the list of running services in the subsystem. 
         * 
@@ -84,4 +79,9 @@ public interface Component {
         * @return
         */
        ProvidedInterface[] getRunningServices();
+       
+       /**
+        * Stops a subsystem. 
+        */
+       void stop(); 
 }