X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcore%2FComponent.java;h=49ed1c7dc26cee0c70ddb8d4b390f98044ef7fd0;hb=49e4054c52db618894cf85eab721aebcbb9c3bc1;hp=d14eb08a2364891205aef8647b47446e8df66f0a;hpb=dea786c9d49228a37cb5fd5b4113b86d9f6cddbf;p=utils diff --git a/system/general/src/main/java/org/wamblee/system/core/Component.java b/system/general/src/main/java/org/wamblee/system/core/Component.java index d14eb08a..49ed1c7d 100644 --- a/system/general/src/main/java/org/wamblee/system/core/Component.java +++ b/system/general/src/main/java/org/wamblee/system/core/Component.java @@ -42,6 +42,12 @@ public interface Component { */ 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. @@ -54,21 +60,20 @@ public interface Component { * Gets a description of the provided interfaces. * @return Provided interfaces. */ - ProvidedInterface[] getProvidedInterfaces(); + ProvidedInterfaces getProvidedInterfaces(); /** * Gets a description of the required interfaces. * @return Required interfaces. */ - RequiredInterface[] getRequiredInterfaces(); + RequiredInterfaces getRequiredInterfaces(); /** * 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);