package org.wamblee.system; import javax.sql.DataSource; public class Application extends AbstractComponent { private static final RequiredInterface[] REQUIRED = new RequiredInterface[] { new DefaultRequiredInterfaceDescriptor("datasource", DataSource.class), new DefaultRequiredInterfaceDescriptor("integer", Integer.class) }; public Application(ServiceRegistry aRegistry) { super("application", aRegistry, new ProvidedInterface[0], REQUIRED); } @Override protected void doStart(String aContext, Service[] aRequiredServices) { // Empty, no services provided externally. } @Override protected void doStop() { // Empty. } }