public class ExcludingPluginFilter extends BasePluginFilter
A PluginFilter implementation that removes explicitly named plugins and any plugins that transitively depend on them.
| Fields inherited from class | Fields |
|---|---|
class BasePluginFilter |
nameMap |
| Constructor and description |
|---|
ExcludingPluginFilter(java.util.Set<java.lang.String> excluded)Creates a filter that excludes the supplied plugin names. |
ExcludingPluginFilter(java.lang.String excluded)Creates a filter that excludes the supplied plugin names. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
addPluginDependencies(java.util.List<PluginMetadata> additionalList, PluginMetadata plugin)Adds plugins that depend on the supplied plugin, so they are excluded as well. |
|
protected java.util.List<PluginMetadata> |
getPluginList(java.util.List<PluginMetadata> original, java.util.List<PluginMetadata> pluginList)Returns the original plugin list with the explicitly excluded plugins and their derived dependents removed. |
| Methods inherited from class | Name |
|---|---|
class BasePluginFilter |
addPluginDependencies, filterPluginList, getAllPlugins, getNamedPlugin, getPluginList, getSuppliedNames, isDependentOn, registerDependency |
Creates a filter that excludes the supplied plugin names.
excluded - the plugin names to excludeCreates a filter that excludes the supplied plugin names.
excluded - the plugin names to exclude; each value is trimmed before useAdds plugins that depend on the supplied plugin, so they are excluded as well.
The plugin itself is ignored during the scan, and each matching dependent is registered through registerDependency(List, PluginMetadata) so recursive traversal and deduplication are handled consistently.
additionalList - the list collecting plugins that should also be excludedplugin - the plugin whose dependents should be excludedReturns the original plugin list with the explicitly excluded plugins and their derived dependents removed.
original - the original plugin list in load orderpluginList - the plugins to remove from the original list