
org.meridor.stecker.dev.DevPluginsProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stecker-plugin-loader Show documentation
Show all versions of stecker-plugin-loader Show documentation
This is a plugin loading library. Its main purpose is to load extension point implementations from
provided plugins.
package org.meridor.stecker.dev;
import org.meridor.stecker.PluginException;
import org.meridor.stecker.interfaces.PluginsProvider;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.stream.Collectors;
public class DevPluginsProvider implements PluginsProvider {
@Override
public List provide(Path baseDirectory) throws PluginException {
try {
return Files.list(baseDirectory)
.filter(f -> Files.isDirectory(f) && f.toString().endsWith("plugin"))
.collect(Collectors.toList());
} catch (IOException e) {
throw new PluginException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy