X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2FApplication.java;h=6e9eb675c25861ae7d911109a7ec89c1c378039b;hb=98856488516fbc8ba95bf0fd2fb739575da9ac5a;hp=3825c98962614eaae400c3c68ea1db230b981638;hpb=0af4854898104bd6322c0f22feb6dc285859f420;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 3825c989..6e9eb675 100644 --- a/system/general/src/test/java/org/wamblee/system/Application.java +++ b/system/general/src/test/java/org/wamblee/system/Application.java @@ -3,18 +3,20 @@ package org.wamblee.system; import javax.sql.DataSource; public class Application extends AbstractComponent { - private static final RequiredInterface[] REQUIRED = + private static RequiredInterface[] required() { + return new RequiredInterface[] { - new DefaultRequiredInterfaceDescriptor("datasource", DataSource.class), - new DefaultRequiredInterfaceDescriptor("integer", Integer.class) + new DefaultRequiredInterface("datasource", DataSource.class), + new DefaultRequiredInterface("integer", Integer.class) }; + } - public Application(ServiceRegistry aRegistry) { - super("application", aRegistry, new ProvidedInterface[0], REQUIRED); + public Application() { + super("application", new ProvidedInterface[0], required()); } @Override - protected void doStart(String aContext, Service[] aRequiredServices) { + protected void doStart(String aContext) { // Empty, no services provided externally. }