import javax.sql.DataSource;
-public class Application extends AbstractSubSystem {
- private static final ServiceDescriptor[] REQUIRED =
- new ServiceDescriptor[] {
- new DefaultServiceDescriptor(DataSource.class),
- new DefaultServiceDescriptor(Integer.class)
+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 ServiceDescriptor[0], REQUIRED);
+ super("application", aRegistry, new ProvidedInterface[0], REQUIRED);
}
@Override