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=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..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,21 +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(String aContext) { + protected void doStop() { // Empty. } }