@Test public void providesServerInfo() { ServerInfoProvider provider = new ServerInfoProvider(); Collection<Class<?>> providedServiceTypes = provider.getProvidedServiceTypes(); assertEquals(1, providedServiceTypes.size()); assertEquals(ServerInfo.class, providedServiceTypes.iterator().next()); }
@Override public Collection<Class<?>> getProvidedServiceTypes() { return Collections.singletonList(ServerInfo.class); }
ServerInfoProvider implements ServiceProvider { @Override public Collection<Class<?>> getProvidedServiceTypes() { return Collections.singletonList(ServerInfo.class); } }
ServerInfoProvider implements ServiceProvider { @Override public Collection<Class<?>> getProvidedServiceTypes() { return Collections.singletonList(ServerInfo.class); }  }
ServerInfoProvider implements ServiceProvider { @Override public Collection<Class<?>> getProvidedServiceTypes() { return Collections.singletonList(ServerInfo.class); }  @Override boolean initialize(ServiceProviderConfiguration serviceProviderConfiguration, PlatformConfiguration platformConfiguration); @Override T getService(long l, ServiceConfiguration<T> serviceConfiguration); @Override Collection<Class<?>> getProvidedServiceTypes(); @Override void prepareForSynchronization(); @Override void addStateTo(StateDumpCollector stateDumpCollector); }
ServerInfoProvider implements ServiceProvider { @Override public Collection<Class<?>> getProvidedServiceTypes() { return Collections.singletonList(ServerInfo.class); }  @Override boolean initialize(ServiceProviderConfiguration serviceProviderConfiguration, PlatformConfiguration platformConfiguration); @Override T getService(long l, ServiceConfiguration<T> serviceConfiguration); @Override Collection<Class<?>> getProvidedServiceTypes(); @Override void prepareForSynchronization(); @Override void addStateTo(StateDumpCollector stateDumpCollector);  }