Changeset 12322 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
- Timestamp:
- 2017-06-06T13:43:28+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r12218 r12322 316 316 * 317 317 * @param klass the plugin class 318 * @param classLoader the class loader for the plugin 318 319 * @return the instantiated and initialized plugin 319 320 * @throws PluginException if the plugin cannot be loaded or instanciated 320 */ 321 public PluginProxy load(Class<?> klass) throws PluginException { 321 * @since 12322 322 */ 323 public PluginProxy load(Class<?> klass, PluginClassLoader classLoader) throws PluginException { 322 324 try { 323 325 Constructor<?> c = klass.getConstructor(PluginInformation.class); 324 326 Object plugin = c.newInstance(this); 325 return new PluginProxy(plugin, this );327 return new PluginProxy(plugin, this, classLoader); 326 328 } catch (ReflectiveOperationException e) { 327 329 throw new PluginException(name, e);
Note:
See TracChangeset
for help on using the changeset viewer.