0ebf001841e0a588ef42397ab87a78eb0dc01b72
[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 RequiredInterfaceDescriptor[] REQUIRED = 
7                 new RequiredInterfaceDescriptor[] { 
8                         new DefaultRequiredInterfaceDescriptor("datasource", DataSource.class), 
9                         new DefaultRequiredInterfaceDescriptor("integer", Integer.class)
10         };
11         
12         public Application(ServiceRegistry aRegistry) {
13                 super("application", aRegistry, new ProvidedInterfaceDescriptor[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 }