Added missing test case.
[utils] / system / general / src / test / java / org / wamblee / system / Application.java
index 3587917b93e98653d2bd95294e770c505477896d..0ebf001841e0a588ef42397ab87a78eb0dc01b72 100644 (file)
@@ -2,24 +2,24 @@ package org.wamblee.system;
 
 import javax.sql.DataSource;
 
-public class Application extends AbstractSubSystem {
-       private static final ServiceDescriptor[] REQUIRED = 
-               new ServiceDescriptor[] { 
-                       new DefaultServiceDescriptor(DataSource.class), 
-                       new DefaultServiceDescriptor(Integer.class)
+public class Application extends AbstractComponent {
+       private static final RequiredInterfaceDescriptor[] REQUIRED = 
+               new RequiredInterfaceDescriptor[] { 
+                       new DefaultRequiredInterfaceDescriptor("datasource", DataSource.class), 
+                       new DefaultRequiredInterfaceDescriptor("integer", Integer.class)
        };
        
-       public Application() {
-               super("application", new ServiceDescriptor[0], REQUIRED); 
+       public Application(ServiceRegistry aRegistry) {
+               super("application", aRegistry, new ProvidedInterfaceDescriptor[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.       
        }
 }