Ejemplo n.º 1
0
 protected void recomputeProxies() {
   List<Schema> list = new ArrayList<>();
   Set<String> nameSet = new HashSet<>();
   for (ProxiesDescriptor pd : allProxies) {
     if (!pd.getType().equals("*")) {
       log.error("Proxy descriptor for specific type not supported: " + pd);
     }
     for (String schemaName : pd.getSchemas()) {
       if (nameSet.contains(schemaName)) {
         continue;
       }
       Schema schema = schemas.get(schemaName);
       if (schema == null) {
         log.error("Proxy schema uses unknown schema: " + schemaName);
         continue;
       }
       list.add(schema);
       nameSet.add(schemaName);
     }
   }
   proxySchemas = list;
   proxySchemaNames = nameSet;
 }