(no commit message)
[utils] / system / general / src / main / java / org / wamblee / system / core / Component.java
index b9b5dad4e5d9cd7ebcf461126ec379b447987693..ff80ee693acdcba8f70443cf4bb704ba4821a2d5 100644 (file)
@@ -23,16 +23,6 @@ package org.wamblee.system.core;
  */
 public interface Component {
        
-       enum Status { 
-               NOT_STARTED, RUNNING, STOPPED
-       }
-       
-       /**
-        * Gets the status of the component. 
-        * @return Status. 
-        */
-       Status getStatus();
-       
        /**
         * Gets the name of the subsystem.
         * @return Subsystem name. 
@@ -56,13 +46,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 +61,6 @@ public interface Component {
         */
        void start();
        
-       /**
-        * Stops a subsystem. 
-        */
-       void stop(); 
-       
        /**
         * Gets the list of running services in the subsystem. 
         * 
@@ -83,5 +68,10 @@ public interface Component {
         * {@link #initialize(String, Service[])} has been called. 
         * @return
         */
-       ProvidedInterface[] getRunningServices();
+       ProvidedInterface[] getRunningInterfaces();
+       
+       /**
+        * Stops a subsystem. 
+        */
+       void stop(); 
 }