@Override public void stop() { startStopCounter.countStop(); }
@Override public void start(ServiceProvider<Service> serviceProvider) { assertThat(serviceProvider.getService(Consumer2.class), is(notNullValue())); startStopCounter.countStart(serviceProvider); super.start(serviceProvider); }
@Override public void start(ServiceProvider<Service> serviceProvider) { assertThat(serviceProvider.getService(DependsOnMe.class), sameInstance(this)); startStopCounter.countStart(serviceProvider); }
@Override public void start(ServiceProvider<Service> serviceProvider) { assertThat(serviceProvider.getService(TestProvidedService.class), is(notNullValue())); startStopCounter.countStart(serviceProvider); }