public abstract class BasePluginFilter extends java.lang.Object implements PluginFilter
Base functionality shared by IncludingPluginFilter
and
ExcludingPluginFilter
.
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.String, GrailsPlugin> |
nameMap |
Holds a name to GrailsPlugin map (String, Plugin). |
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 |
|
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), java.lang.Object#wait(long, int), java.lang.Object#wait(), 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() |
Holds a name to GrailsPlugin map (String, Plugin).
Defines operation for adding dependencies for a plugin to the list
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