MCPcopy Create free account
hub / github.com/apache/nutch / get

Method get

src/java/org/apache/nutch/plugin/PluginRepository.java:101–112  ·  view source on GitHub ↗

@return a cached instance of the plugin repository

(Configuration conf)

Source from the content-addressed store, hash-verified

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) {

Callers 15

setConfMethod · 0.95
setConfMethod · 0.95
setConfMethod · 0.95
setConfMethod · 0.95
setUpMethod · 0.95
testRepositoryCacheMethod · 0.95
collectLibsMethod · 0.95
getExtensionInstanceMethod · 0.95
ProtocolFactoryMethod · 0.95
IndexWritersMethod · 0.95
IndexingFiltersMethod · 0.95
IndexCleaningFiltersMethod · 0.95

Calls 4

getUUIDMethod · 0.95
getMethod · 0.65
hashCodeMethod · 0.45
putMethod · 0.45

Tested by 2

setUpMethod · 0.76
testRepositoryCacheMethod · 0.76