(no commit message)
[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 RequiredInterface[] required() {
7                 return
8                 new RequiredInterface[] { 
9                         new DefaultRequiredInterface("datasource", DataSource.class), 
10                         new DefaultRequiredInterface("integer", Integer.class)
11         };
12         }
13         
14         public Application() {
15                 super("application", new ProvidedInterface[0], required()); 
16         }
17
18         @Override
19         protected void doStart(String aContext) {
20                 // Empty, no services provided externally. 
21         }
22         
23         @Override
24         protected void doStop() {
25                 // Empty.       
26         }
27 }