예제 #1
0
 public void register(Description<?> description) {
   Preconditions.checkNotNull(description);
   BuildRuleType type = description.getBuildRuleType();
   types.put(type.getName(), type);
   factories.put(type, new DescribedRuleFactory<>(description));
   descriptions.put(type, description);
 }
예제 #2
0
 public Builder register(Description<?> description) {
   BuildRuleType type = description.getBuildRuleType();
   types.put(type.getName(), type);
   descriptions.put(type, description);
   return this;
 }