|
|
@ -15,6 +15,8 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
package org.pf4j; |
|
|
|
package org.pf4j; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.nio.file.Path; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* It's a {@link PluginManager} that loads each plugin from a {@code jar} file. |
|
|
|
* It's a {@link PluginManager} that loads each plugin from a {@code jar} file. |
|
|
|
* Actually, a plugin is a fat jar, a jar which contains classes from all the libraries, |
|
|
|
* Actually, a plugin is a fat jar, a jar which contains classes from all the libraries, |
|
|
@ -24,6 +26,14 @@ package org.pf4j; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class JarPluginManager extends DefaultPluginManager { |
|
|
|
public class JarPluginManager extends DefaultPluginManager { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public JarPluginManager() { |
|
|
|
|
|
|
|
super(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public JarPluginManager(Path pluginsRoot) { |
|
|
|
|
|
|
|
super(pluginsRoot); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected PluginDescriptorFinder createPluginDescriptorFinder() { |
|
|
|
protected PluginDescriptorFinder createPluginDescriptorFinder() { |
|
|
|
return new ManifestPluginDescriptorFinder(); |
|
|
|
return new ManifestPluginDescriptorFinder(); |
|
|
|