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=1a725b3c14d7c890f262f6027baf73b16d555f27;hpb=35b19fe3a3158e865125153d53cd7d106ab2fae4;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 1a725b3c..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,20 +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 doInitialize(String aContext, Service[] aRequiredServices) { + protected void doStart(String aContext, Service[] aRequiredServices) { // Empty, no services provided externally. } - + + @Override + protected void doStop() { + // Empty. + } }