public abstract class BasePluginFilter extends java.lang.Object implements PluginFilter
Base functionality shared by IncludingPluginFilter
and
ExcludingPluginFilter
.
Modifiers | Name | Description |
---|---|---|
private java.util.Set<java.lang.String> |
addedNames |
Temporary field holding list of plugin names added to the filtered List to return (String). |
private java.util.List<GrailsPlugin> |
derivedPlugins |
Plugins derivied through a dependency relationship. |
private java.util.List<GrailsPlugin> |
explicitlyNamedPlugins |
Plugins corresponding with the supplied names. |
protected java.util.Map<java.lang.String, GrailsPlugin> |
nameMap |
Holds a name to GrailsPlugin map (String, Plugin). |
private java.util.List<GrailsPlugin> |
originalPlugins |
|
private java.util.Set<java.lang.String> |
suppliedNames |
The supplied included plugin names (a String). |
Constructor and description |
---|
BasePluginFilter
(java.util.Set<java.lang.String> suppliedNames) |
BasePluginFilter
(java.lang.String[] included) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected abstract void |
addPluginDependencies(java.util.List additionalList, GrailsPlugin plugin) Defines operation for adding dependencies for a plugin to the list |
|
private void |
buildDerivedPluginList() Builds list of GrailsPlugins which are derived from the
explicitlyNamedPlugins through a dependency relationship |
|
private void |
buildExplicitlyNamedList() Returns the sublist of the supplied set who are explicitly named, either as included or excluded plugins |
|
private void |
buildNameMap() Builds a name to plugin map from the original list of plugins supplied |
|
public java.util.List<GrailsPlugin> |
filterPluginList(java.util.List<GrailsPlugin> original) Template method shared by subclasses of BasePluginFilter . |
|
protected java.util.Collection |
getAllPlugins() |
|
protected GrailsPlugin |
getNamedPlugin(java.lang.String name) |
|
protected abstract java.util.List<GrailsPlugin> |
getPluginList(java.util.List original, java.util.List pluginList) Defines an operation getting the final list to return from the original and derived lists |
|
protected java.util.Set<java.lang.String> |
getSuppliedNames() |
|
protected boolean |
isDependentOn(GrailsPlugin plugin, java.lang.String pluginName) Checks whether a plugin is dependent on another plugin with the specified name |
|
protected void |
registerDependency(java.util.List additionalList, GrailsPlugin plugin) Adds a plugin to the additional if this hasn't happened already |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Temporary field holding list of plugin names added to the filtered List to return (String).
Plugins derivied through a dependency relationship.
Plugins corresponding with the supplied names.
Holds a name to GrailsPlugin map (String, Plugin).
The supplied included plugin names (a String).
Defines operation for adding dependencies for a plugin to the list
Builds list of GrailsPlugins
which are derived from the
explicitlyNamedPlugins
through a dependency relationship
Returns the sublist of the supplied set who are explicitly named, either as included or excluded plugins
Builds a name to plugin map from the original list of plugins supplied
Template method shared by subclasses of BasePluginFilter
.
Defines an operation getting the final list to return from the original and derived lists
Checks whether a plugin is dependent on another plugin with the specified name
plugin
- the plugin to comparepluginName
- the name to compare againstplugin
depends on pluginName
Adds a plugin to the additional if this hasn't happened already