MCPcopy Create free account
hub / github.com/GateNLP/gate-core / getPlugins

Method getPlugins

src/main/java/gate/Gate.java:1114–1128  ·  view source on GitHub ↗

Returns information about plugin directories which provide the requested resource @param resourceClassName the class name of the resource you are interested in @return information about the directories which provide an implementation of the requested resource

(String resourceClassName)

Source from the content-addressed store, hash-verified

1112 * of the requested resource
1113 */
1114 public static Set<Plugin> getPlugins(String resourceClassName) {
1115 Set<Plugin> dirs = new HashSet<Plugin>();
1116
1117 for (Plugin plugin: getKnownPlugins()) {
1118
1119
1120 for (ResourceInfo rInfo : plugin.getResourceInfoList()) {
1121 if (rInfo.resourceClassName.equals(resourceClassName)) {
1122 dirs.add(plugin);
1123 }
1124 }
1125 }
1126
1127 return dirs;
1128 }
1129
1130 /**
1131 * Tells the system to &quot;forget&quot; about one previously known

Callers 2

createResourceMethod · 0.95
initGuiComponentsMethod · 0.95

Calls 4

getKnownPluginsMethod · 0.95
getResourceInfoListMethod · 0.80
equalsMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected