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, BEAN_NAME |
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) |
|
void |
checkForChanges() @deprecated Replaced by agent-based reloading, will be removed in a future version of Grails |
|
protected GrailsPlugin |
createGrailsPlugin(java.lang.Class<?> pluginClass) |
|
protected GrailsPlugin |
createGrailsPlugin(java.lang.Class<?> pluginClass, org.springframework.core.io.Resource resource) |
|
void |
doDynamicMethods() |
|
protected void |
evictPlugin(GrailsPlugin evictor, java.lang.String evicteeName) |
|
java.util.Collection<GrailsPlugin> |
getPluginObservers(GrailsPlugin plugin) |
|
GrailsPlugin[] |
getUserPlugins() |
|
void |
informObservers(java.lang.String pluginName, java.util.Map event) |
|
void |
loadPlugins() |
|
void |
refreshPlugin(java.lang.String name) |
|
void |
reloadPlugin(GrailsPlugin plugin) |
|
protected java.util.Map<GrailsPlugin, java.util.List<GrailsPlugin>> |
resolveLoadDependencies(java.util.List<GrailsPlugin> plugins) |
|
void |
setApplication(GrailsApplication application) |
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
|
void |
setParentApplicationContext(org.springframework.context.ApplicationContext parent) |
|
void |
setPluginFilter(PluginFilter pluginFilter) |
|
protected java.util.List<GrailsPlugin> |
sortPlugins(java.util.List<GrailsPlugin> toSort) |