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)
| 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 "forget" about one previously known |
no test coverage detected