X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2FApplication.java;h=0ebf001841e0a588ef42397ab87a78eb0dc01b72;hb=bfb43f7e25ff26dcb43bbfd671862945855a4d3d;hp=3587917b93e98653d2bd95294e770c505477896d;hpb=fe01768589f67e25c16254bf27a8631ceb78afe0;p=utils diff --git a/system/general/src/test/java/org/wamblee/system/Application.java b/system/general/src/test/java/org/wamblee/system/Application.java index 3587917b..0ebf0018 100644 --- a/system/general/src/test/java/org/wamblee/system/Application.java +++ b/system/general/src/test/java/org/wamblee/system/Application.java @@ -2,24 +2,24 @@ package org.wamblee.system; import javax.sql.DataSource; -public class Application extends AbstractSubSystem { - private static final ServiceDescriptor[] REQUIRED = - new ServiceDescriptor[] { - new DefaultServiceDescriptor(DataSource.class), - new DefaultServiceDescriptor(Integer.class) +public class Application extends AbstractComponent { + private static final RequiredInterfaceDescriptor[] REQUIRED = + new RequiredInterfaceDescriptor[] { + new DefaultRequiredInterfaceDescriptor("datasource", DataSource.class), + new DefaultRequiredInterfaceDescriptor("integer", Integer.class) }; - public Application() { - super("application", new ServiceDescriptor[0], REQUIRED); + public Application(ServiceRegistry aRegistry) { + super("application", aRegistry, new ProvidedInterfaceDescriptor[0], REQUIRED); } @Override - protected void doStart(String aContext, ServiceRegistry aRegistry, Service[] aRequiredServices) { + protected void doStart(String aContext, Service[] aRequiredServices) { // Empty, no services provided externally. } @Override - protected void doStop(String aContext) { + protected void doStop() { // Empty. } }