|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.plugins.BasePluginFilter
public abstract class BasePluginFilter
Base functionality shared by IncludingPluginFilter
and
ExcludingPluginFilter
Field Summary | |
---|---|
protected Map |
nameMap
Holds a name to GrailsPlugin map (String, Plugin) |
Constructor Summary | |
---|---|
BasePluginFilter(Set suppliedNames)
|
|
BasePluginFilter(String[] included)
|
Method Summary | |
---|---|
protected abstract void |
addPluginDependencies(List additionalList,
GrailsPlugin plugin)
Defines operation for adding dependencies for a plugin to the list |
List<GrailsPlugin> |
filterPluginList(List<GrailsPlugin> original)
Template method shared by subclasses of BasePluginFilter . |
protected Collection |
getAllPlugins()
|
protected GrailsPlugin |
getNamedPlugin(String name)
|
protected abstract List<GrailsPlugin> |
getPluginList(List original,
List pluginList)
Defines an operation getting the final list to return from the original and derived lists |
protected Set |
getSuppliedNames()
|
protected boolean |
isDependentOn(GrailsPlugin plugin,
String pluginName)
Checks whether a plugin is dependent on another plugin with the specified name |
protected void |
registerDependency(List additionalList,
GrailsPlugin plugin)
Adds a plugin to the additional if this hasn't happened already |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map nameMap
Constructor Detail |
---|
public BasePluginFilter(Set suppliedNames)
public BasePluginFilter(String[] included)
Method Detail |
---|
protected abstract void addPluginDependencies(List additionalList, GrailsPlugin plugin)
protected abstract List<GrailsPlugin> getPluginList(List original, List pluginList)
public List<GrailsPlugin> filterPluginList(List<GrailsPlugin> original)
BasePluginFilter
.
filterPluginList
in interface PluginFilter
original
- the original supplied set of GrailsPlugin
instances
protected boolean isDependentOn(GrailsPlugin plugin, String pluginName)
plugin
- the plugin to comparepluginName
- the name to compare against
plugin
depends on pluginName
protected void registerDependency(List additionalList, GrailsPlugin plugin)
protected Collection getAllPlugins()
protected GrailsPlugin getNamedPlugin(String name)
protected Set getSuppliedNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |