X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcore%2FComponent.java;h=9506bb1f32c3fc874b9460cad4ac6e0757c0e6b3;hb=d3f458acc63a8754f4104d0623f8b4af6b708168;hp=48293d4518b88a35be628e928b11c350c30805a8;hpb=fddbe9b130633c7d8925f2580afea65767d1d615;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 48293d45..9506bb1f 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 @@ -15,6 +15,8 @@ */ package org.wamblee.system.core; +import java.util.List; + /** * A component represents a part of a system that requires a * number of interfaces and provides a number of interfaces. @@ -60,21 +62,20 @@ public interface Component { * Gets a description of the provided interfaces. * @return Provided interfaces. */ - ProvidedInterface[] getProvidedInterfaces(); + List getProvidedInterfaces(); /** * Gets a description of the required interfaces. * @return Required interfaces. */ - RequiredInterface[] getRequiredInterfaces(); + List 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);