public class DefaultGrailsPluginManager extends AbstractGrailsPluginManager
Handles the loading and management of plug-ins in the Grails system. A plugin is just like a normal Grails application except that it contains a file ending in *Plugin.groovy in the root of the directory.
A Plugin class is a Groovy class that has a version and optionally closures called doWithSpring, doWithContext and doWithWebDescriptor
The doWithSpring closure uses the BeanBuilder syntax (
Modifiers | Name | Description |
---|---|---|
protected static java.lang.Class<?>[] |
COMMON_CLASSES |
Fields inherited from class | Fields |
---|---|
class AbstractGrailsPluginManager |
CONFIG_FILE, application, applicationContext, classNameToPluginMap, failedPlugins, initialised, loadCorePlugins, pluginClasses, pluginList, pluginResources, plugins, shutdown |
Constructor and description |
---|
DefaultGrailsPluginManager
(java.lang.String resourcePath, GrailsApplication application) |
DefaultGrailsPluginManager
(java.lang.String[] pluginResources, GrailsApplication application) |
DefaultGrailsPluginManager
(java.lang.Class<?>[] plugins, GrailsApplication application) |
DefaultGrailsPluginManager
(org.springframework.core.io.Resource[] pluginFiles, GrailsApplication application) |
DefaultGrailsPluginManager
(GrailsApplication application) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected boolean |
canRegisterPlugin(GrailsPlugin plugin) |
|
public void |
checkForChanges()
|
|
protected GrailsPlugin |
createGrailsPlugin(java.lang.Class<?> pluginClass) |
|
protected GrailsPlugin |
createGrailsPlugin(java.lang.Class<?> pluginClass, org.springframework.core.io.Resource resource) |
|
public void |
doDynamicMethods() |
|
protected void |
evictPlugin(GrailsPlugin evictor, java.lang.String evicteeName) |
|
public java.util.Collection<GrailsPlugin> |
getPluginObservers(GrailsPlugin plugin) |
|
public GrailsPlugin[] |
getUserPlugins() |
|
public void |
informObservers(java.lang.String pluginName, java.util.Map event) |
|
public void |
loadPlugins() |
|
public void |
refreshPlugin(java.lang.String name) |
|
public void |
reloadPlugin(GrailsPlugin plugin) |
|
protected java.util.Map<GrailsPlugin, java.util.List<GrailsPlugin>> |
resolveLoadDependencies(java.util.List<GrailsPlugin> plugins) |
|
public void |
setApplication(GrailsApplication application) |
|
public void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
|
public void |
setParentApplicationContext(org.springframework.context.ApplicationContext parent) |
|
public void |
setPluginFilter(PluginFilter pluginFilter) |
|
protected java.util.List<GrailsPlugin> |
sortPlugins(java.util.List<GrailsPlugin> toSort) |