@return a cached instance of the plugin repository
(Configuration conf)
| 99 | * @return a cached instance of the plugin repository |
| 100 | */ |
| 101 | public static synchronized PluginRepository get(Configuration conf) { |
| 102 | String uuid = NutchConfiguration.getUUID(conf); |
| 103 | if (uuid == null) { |
| 104 | uuid = "nonNutchConf@" + conf.hashCode(); // fallback |
| 105 | } |
| 106 | PluginRepository result = CACHE.get(uuid); |
| 107 | if (result == null) { |
| 108 | result = new PluginRepository(conf); |
| 109 | CACHE.put(uuid, result); |
| 110 | } |
| 111 | return result; |
| 112 | } |
| 113 | |
| 114 | private void installExtensionPoints(List<PluginDescriptor> plugins) { |
| 115 | if (plugins == null) { |