some major refactoring.
[utils] / system / general / src / test / java / org / wamblee / system / Application.java
index 3825c98962614eaae400c3c68ea1db230b981638..b84ca5e247410ea6d0ec7c690edc539b87683c9b 100644 (file)
@@ -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)
        };
+       }
        
-       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. 
        }