Example #1
0
 @Override
 public List<RepoExecutor> getAvailableSourceRepoPlugins() {
   List<RepoExecutor> result = new ArrayList<>();
   for (Class plugin : sourceRepoPluginMap.values()) {
     try {
       RepoExecutor executor = getNewSourceRepoPlugin(plugin.getName(), null);
       result.add(executor);
     } catch (UnableLoadPluginException e) {
       log.warn("Unable to load plugin " + e.getMessage());
     }
   }
   return result;
 }
Example #2
0
 @Override
 public TranslationServerExecutor getNewTransServerPlugin(String className) {
   for (Class plugin : transServerPluginMap.values()) {
     if (plugin.getName().equals(className)) {
       try {
         return getNewTransServerPlugin(plugin.getName(), null);
       } catch (UnableLoadPluginException e) {
         log.warn("Unable to load plugin " + e.getMessage());
       }
     }
   }
   return null;
 }