1 package org.wamblee.system;
3 import javax.sql.DataSource;
6 public class Environment extends AbstractComponent {
8 private static final ProvidedInterface[] provided() {
9 return new ProvidedInterface[] {
10 new DefaultProvidedInterface("datasource", DataSource.class),
11 new DefaultProvidedInterface("integer", Integer.class)
15 public Environment() {
16 super("environment", provided(), new RequiredInterface[0]);
20 protected void doStart(String aContext) {
21 addService(aContext, getProvidedServices()[0], new Integer(1));
22 addService(aContext, getProvidedServices()[1], new Integer(2));
26 protected void doStop() {