(no commit message)
[utils] / system / general / src / test / java / org / wamblee / system / Application.java
index 0ebf001841e0a588ef42397ab87a78eb0dc01b72..6e9eb675c25861ae7d911109a7ec89c1c378039b 100644 (file)
@@ -3,18 +3,20 @@ package org.wamblee.system;
 import javax.sql.DataSource;
 
 public class Application extends AbstractComponent {
-       private static final RequiredInterfaceDescriptor[] REQUIRED = 
-               new RequiredInterfaceDescriptor[] { 
-                       new DefaultRequiredInterfaceDescriptor("datasource", DataSource.class), 
-                       new DefaultRequiredInterfaceDescriptor("integer", Integer.class)
+       private static RequiredInterface[] required() {
+               return
+               new RequiredInterface[] { 
+                       new DefaultRequiredInterface("datasource", DataSource.class), 
+                       new DefaultRequiredInterface("integer", Integer.class)
        };
+       }
        
-       public Application(ServiceRegistry aRegistry) {
-               super("application", aRegistry, new ProvidedInterfaceDescriptor[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. 
        }