X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2FComponent.java;h=e06532669ce5a49c179fc5d54c0214c9b5e20d45;hb=b0e1c060d6207c0fc06e4673764a6980da775210;hp=22ad381e0a073c1175241140ea41236195d9be1a;hpb=6f8bb575523e672b9f8797e543f7c59d15db7253;p=utils diff --git a/system/general/src/main/java/org/wamblee/system/Component.java b/system/general/src/main/java/org/wamblee/system/Component.java index 22ad381e..e0653266 100644 --- a/system/general/src/main/java/org/wamblee/system/Component.java +++ b/system/general/src/main/java/org/wamblee/system/Component.java @@ -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.