Example #1
0
 /**
  * It is implicitly assumed that all the services are NEW and that they will all remain NEW
  * until all the Listeners are installed and {@link #markReady()} is called. It is our caller's
  * responsibility to only call {@link #markReady()} if all services were new at the time this
  * method was called and when all the listeners were installed.
  */
 ServiceManagerState(ImmutableCollection<Service> services) {
   this.numberOfServices = services.size();
   servicesByState.putAll(NEW, services);
 }