X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2FApplication.java;h=47c92af88405a1edae2990ff5c4c350e4c826078;hb=6f277575685808a5c5a76555dd3e839dc5255031;hp=3587917b93e98653d2bd95294e770c505477896d;hpb=e7aa00a2eebaa1f8f9d7d1c407a5e8a7cbe899f7;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..47c92af8 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 InterfaceDescriptor[] REQUIRED = + new InterfaceDescriptor[] { + 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 InterfaceDescriptor[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. } }