Quellcode durchsuchen

Resolve #294

tags/release-3.0.0
Decebal Suiu vor 5 Jahren
Ursprung
Commit
4eeaf8ab55

+ 4
- 4
pf4j/src/main/java/org/pf4j/DefaultPluginManager.java Datei anzeigen

@Override @Override
protected PluginRepository createPluginRepository() { protected PluginRepository createPluginRepository() {
return new CompoundPluginRepository() return new CompoundPluginRepository()
.add(new DefaultPluginRepository(getPluginsRoot(), isDevelopment()))
.add(new JarPluginRepository(getPluginsRoot()));
.add(new JarPluginRepository(getPluginsRoot()))
.add(new DefaultPluginRepository(getPluginsRoot(), isDevelopment()));
} }


@Override @Override
protected PluginLoader createPluginLoader() { protected PluginLoader createPluginLoader() {
return new CompoundPluginLoader() return new CompoundPluginLoader()
.add(new DefaultPluginLoader(this, pluginClasspath))
.add(new JarPluginLoader(this));
.add(new JarPluginLoader(this))
.add(new DefaultPluginLoader(this, pluginClasspath));
} }


@Override @Override

+ 13
- 1
pf4j/src/test/java/org/pf4j/LoadPluginsTest.java Datei anzeigen



@Before @Before
public void setUp() { public void setUp() {
pluginManager = new DefaultPluginManager(pluginsFolder.getRoot().toPath());
pluginManager = new DefaultPluginManager(pluginsFolder.getRoot().toPath()) {

@Override
protected PluginRepository createPluginRepository() {
return new DefaultPluginRepository(getPluginsRoot(), isDevelopment());
}

@Override
protected PluginLoader createPluginLoader() {
return new DefaultPluginLoader(this, pluginClasspath);
}

};
} }


@Test @Test

Laden…
Abbrechen
Speichern