示例#1
0
 @Override
 public Builder setComponents(ComponentContext... components) {
   network.components.clear();
   for (ComponentContext component : components) {
     network.components.put(component.name(), component);
   }
   return this;
 }
示例#2
0
 @Override
 public Builder setComponents(Collection<ComponentContext> components) {
   Args.checkNotNull(components, "components cannot be null");
   network.components.clear();
   for (ComponentContext component : components) {
     network.components.put(component.name(), component);
   }
   return this;
 }
示例#3
0
 @Override
 public Builder removeComponent(ComponentContext component) {
   Args.checkNotNull(component, "component cannot be null");
   network.components.remove(component.name());
   return this;
 }