public class PluginBundleManager extends Object implements AutoCloseable
| Constructor and Description |
|---|
PluginBundleManager(PluginManager pluginManager,
MavenPluginRepository mavenPluginRepository,
Path pluginsDir) |
public PluginBundleManager(PluginManager pluginManager, MavenPluginRepository mavenPluginRepository, Path pluginsDir)
public PluginBundle install(MavenPluginBundle mavenPluginBundle, boolean strictDependencyChecking) throws Exception
Exceptionpublic PluginBundle install(MavenPluginBundle mavenPluginBundle, List<SPluginInformation> plugins, boolean strictDependencyChecking) throws Exception
Exceptionpublic PluginBundle loadFromPluginDir(PluginBundleVersionIdentifier pluginBundleVersionIdentifier, SPluginBundleVersion pluginBundleVersion, List<SPluginInformation> plugins, boolean strictDependencyChecking) throws Exception
Exceptionpublic PluginBundle loadPluginsFromJar(PluginBundleVersionIdentifier pluginBundleVersionIdentifier, Path file, SPluginBundle sPluginBundle, SPluginBundleVersion pluginBundleVersion, ClassLoader parentClassLoader) throws PluginException
PluginExceptionpublic PluginBundle loadJavaProject(Path projectRoot, Path pomFile, Path pluginFolder, PluginDescriptor pluginDescriptor, boolean resolveRemoteDependencies) throws PluginException, FileNotFoundException, IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
PluginExceptionFileNotFoundExceptionIOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic PluginBundle loadPluginsFromEclipseProject(Path projectRoot) throws PluginException
PluginExceptionpublic void loadPluginsFromEclipseProjectNoExceptions(Path projectRoot)
public void loadAllPluginsFromEclipseWorkspace(Path file, boolean showExceptions) throws PluginException, IOException
PluginExceptionIOExceptionpublic void loadAllPluginsFromEclipseWorkspaces(Path directory, boolean showExceptions) throws PluginException, IOException
PluginExceptionIOExceptionpublic PluginBundle loadPlugin(PluginBundleVersionIdentifier pluginBundleVersionIdentifier, Path target, SPluginBundle sPluginBundle, SPluginBundleVersion pluginBundleVersion, List<SPluginInformation> plugins, ClassLoader parentClassLoader) throws Exception
Exceptionpublic void uninstall(PluginBundleVersionIdentifier pluginBundleVersionIdentifier)
public PluginBundle update(PluginBundleVersionIdentifier pluginBundleVersionIdentifier, SPluginBundle sPluginBundle, SPluginBundleVersion pluginBundleVersion, Path jarFile, Path pomFile, List<SPluginInformation> plugins) throws Exception
Exceptionpublic PluginBundle getPluginBundle(PluginBundleIdentifier pluginIdentifier)
public Collection<PluginBundle> getPluginBundles()
public void close()
close in interface AutoCloseablepublic SPluginBundle extractPluginBundleFromJar(Path jarFilePath) throws PluginException
PluginExceptionCopyright © 2019 OpenSource BIM. All rights reserved.