HibernateUserAdministrationTest now based on the component mechanism.
[utils] / system / general / src / main / java / org / wamblee / system / core / Component.java
index d14eb08a2364891205aef8647b47446e8df66f0a..37a9c84dbe938c9f9ee2300257016cff375f8c35 100644 (file)
@@ -42,6 +42,12 @@ public interface Component<Type> {
         */
        void addContext(String aContext);
        
+       /**
+        * Getst the context.
+        * @return Context or null if not set. 
+        */
+       String getContext();
+       
        /**
         * Gets the fully qualified name of the component which includes
         * the context of the component.  
@@ -67,8 +73,7 @@ public interface Component<Type> {
         * Initialises the subsystem by starting all the services that
         * it described as provided.
         * @param aScope Scope with external interface implementations that are available. The component 
-        *  implementation can either oublish itself in this scope or it can decide to
-        *  create a new scope with the scope passed in as a parent. 
+        *  must publish its runtime and its provided interfaces in this scope. 
         * @return Gets an object representing the runtime of the component.  
         */
        Type start(Scope aScope);