rename subsystem to component.
[utils] / system / general / src / test / java / org / wamblee / system / Application.java
index 07b1e34cbc7939d6e30ce44b9acc8d7fcebfc40c..47c92af88405a1edae2990ff5c4c350e4c826078 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 DefaultRequiredServiceDescriptor("datasource", DataSource.class), 
-                       new DefaultRequiredServiceDescriptor("integer", Integer.class)
+public class Application extends AbstractComponent {
+       private static final InterfaceDescriptor[] REQUIRED = 
+               new InterfaceDescriptor[] { 
+                       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 InterfaceDescriptor[0], REQUIRED); 
        }
 
        @Override