Lines Matching refs:plugin
34 import jdk.tools.jlink.plugin.Plugin;
35 import jdk.tools.jlink.plugin.PluginException;
50 * Retrieves the plugin associated to the passed name. If multiple providers
53 * @param name The plugin provider name.
63 * Build plugin for the passed name.
68 * @return A plugin or null if no plugin found.
74 Plugin plugin = getPlugin(name, pluginsLayer);
75 if (plugin != null) {
77 plugin.configure(config);
80 System.err.println("Plugin " + plugin.getName() + " threw exception with config: " + config);
86 return plugin;
90 * Explicit registration of a plugin in the repository. Used by unit tests
91 * @param plugin The plugin to register.
93 public synchronized static void registerPlugin(Plugin plugin) {
94 Objects.requireNonNull(plugin);
95 registeredPlugins.put(plugin.getName(), plugin);
99 * Explicit unregistration of a plugin in the repository. Used by unit
123 throw new PluginException("Multiple plugin "