(no commit message)
[utils] / system / general / src / test / java / org / wamblee / system / Application.java
index d5a3590db2775b0479a4ac857323e3492e7a66d0..3825c98962614eaae400c3c68ea1db230b981638 100644 (file)
@@ -2,15 +2,15 @@ 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 RequiredInterface[] REQUIRED = 
+               new RequiredInterface[] { 
+                       new DefaultRequiredInterfaceDescriptor("datasource", DataSource.class), 
+                       new DefaultRequiredInterfaceDescriptor("integer", Integer.class)
        };
        
        public Application(ServiceRegistry aRegistry) {
-               super("application", aRegistry, new ServiceDescriptor[0], REQUIRED); 
+               super("application", aRegistry, new ProvidedInterface[0], REQUIRED); 
        }
 
        @Override