rename subsystem to component.
[utils] / system / general / src / test / java / org / wamblee / system / Application.java
1 package org.wamblee.system;
2
3 import javax.sql.DataSource;
4
5 public class Application extends AbstractComponent {
6         private static final InterfaceDescriptor[] REQUIRED = 
7                 new InterfaceDescriptor[] { 
8                         new DefaultRequiredInterfaceDescriptor("datasource", DataSource.class), 
9                         new DefaultRequiredInterfaceDescriptor("integer", Integer.class)
10         };
11         
12         public Application(ServiceRegistry aRegistry) {
13                 super("application", aRegistry, new InterfaceDescriptor[0], REQUIRED); 
14         }
15
16         @Override
17         protected void doStart(String aContext, Service[] aRequiredServices) {
18                 // Empty, no services provided externally. 
19         }
20         
21         @Override
22         protected void doStop() {
23                 // Empty.       
24         }
25 }