public class Application extends AbstractSubSystem {
private static final ServiceDescriptor[] REQUIRED =
new ServiceDescriptor[] {
- new DefaultServiceDescriptor(DataSource.class),
- new DefaultServiceDescriptor(Integer.class)
+ new DefaultRequiredServiceDescriptor("datasource", DataSource.class),
+ new DefaultRequiredServiceDescriptor("integer", Integer.class)
};
- public Application() {
- super("application", new ServiceDescriptor[0], REQUIRED);
+ public Application(ServiceRegistry aRegistry) {
+ super("application", aRegistry, new ServiceDescriptor[0], REQUIRED);
}
@Override
- protected void doStart(String aContext, ServiceRegistry aRegistry, Service[] aRequiredServices) {
+ protected void doStart(String aContext, Service[] aRequiredServices) {
// Empty, no services provided externally.
}
-
+
+ @Override
+ protected void doStop() {
+ // Empty.
+ }
}