added spring subsystem implementation.
[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 AbstractSubSystem {
6         private static final ServiceDescriptor[] REQUIRED = 
7                 new ServiceDescriptor[] { 
8                         new DefaultServiceDescriptor(DataSource.class), 
9                         new DefaultServiceDescriptor(Integer.class)
10         };
11         
12         public Application(ServiceRegistry aRegistry) {
13                 super("application", aRegistry, new ServiceDescriptor[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 }