Better solution for setting the context. The context is now known as soon as componen...
[utils] / system / general / src / main / java / org / wamblee / system / Component.java
index 22ad381e0a073c1175241140ea41236195d9be1a..e06532669ce5a49c179fc5d54c0214c9b5e20d45 100644 (file)
@@ -38,6 +38,19 @@ public interface Component {
         * @return Subsystem name. 
         */
        String getName();
+       
+       /**
+        * Prepends the context with a super context. 
+        */
+       void addContext(String aContext);
+       
+       /**
+        * Gets the fully qualified name of the component which includes
+        * the context of the component.  
+        * This method can only be used after the component has started.
+        * @return Qualified name. 
+        */
+       String getQualifiedName(); 
 
        /**
         * Gets a description of the provided interfaces. 
@@ -55,9 +68,8 @@ public interface Component {
        /**
         * Initialises the subsytem by starting all the services that
         * it described as provided. 
-        * @param aContext Unique name for the subsystem.  
         */
-       void start(String aContext);
+       void start();
        
        /**
         * Stops a subsystem.