X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2FApplication.java;h=07b1e34cbc7939d6e30ce44b9acc8d7fcebfc40c;hb=b6364aebdb15bb0648e8db2030d8ad793e209af6;hp=77c76cb3120413b71163ad7af6a670b13480ec9e;hpb=4c7e63f11337abfaa6ea13eab4b6ca11891f4977;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 77c76cb3..07b1e34c 100644 --- a/system/general/src/test/java/org/wamblee/system/Application.java +++ b/system/general/src/test/java/org/wamblee/system/Application.java @@ -5,17 +5,21 @@ import javax.sql.DataSource; public class Application extends AbstractSubSystem { private static final ServiceDescriptor[] REQUIRED = new ServiceDescriptor[] { - new DefaultServiceDescriptor(DataSource.class), - new DefaultServiceDescriptor(Integer.class) + new DefaultRequiredServiceDescriptor("datasource", DataSource.class), + new DefaultRequiredServiceDescriptor("integer", Integer.class) }; - public Application() { - super("application", new ServiceDescriptor[0], REQUIRED); + public Application(ServiceRegistry aRegistry) { + super("application", aRegistry, new ServiceDescriptor[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() { + // Empty. + } }