public class IncludingPluginFilter extends BasePluginFilter
A PluginFilter implementation that retains explicitly named plugins and any plugins they transitively depend on.
| Fields inherited from class | Fields |
|---|---|
class BasePluginFilter |
nameMap |
| Constructor and description |
|---|
IncludingPluginFilter(java.util.Set<java.lang.String> included)Creates a filter that includes the supplied plugin names. |
IncludingPluginFilter(java.lang.String included)Creates a filter that includes the supplied plugin names. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
addPluginDependencies(java.util.List<PluginMetadata> additionalList, PluginMetadata plugin)Adds the direct dependencies declared by the supplied plugin, so they are included as well. |
|
protected java.util.List<PluginMetadata> |
getPluginList(java.util.List<PluginMetadata> original, java.util.List<PluginMetadata> pluginList)Returns only the explicitly included plugins and the dependencies discovered from them. |
| Methods inherited from class | Name |
|---|---|
class BasePluginFilter |
addPluginDependencies, filterPluginList, getAllPlugins, getNamedPlugin, getPluginList, getSuppliedNames, isDependentOn, registerDependency |
Creates a filter that includes the supplied plugin names.
included - the plugin names to includeCreates a filter that includes the supplied plugin names.
included - the plugin names to include; each value is trimmed before useAdds the direct dependencies declared by the supplied plugin, so they are included as well.
Each dependency is registered through registerDependency(List, PluginMetadata) so that recursive traversal and deduplication are handled consistently by the base class.
additionalList - the list collecting plugins that should also be includedplugin - the plugin whose dependencies should be includedReturns only the explicitly included plugins and the dependencies discovered from them.
original - the original plugin list supplied to the filterpluginList - the explicitly named and dependency-derived plugins collected by the base algorithm