|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.plugins.AbstractGrailsPluginManager org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager
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 (
Field Summary |
---|
Fields inherited from class AbstractGrailsPluginManager | |
---|---|
application, applicationContext, classNameToPluginMap, failedPlugins, initialised, loadCorePlugins, pluginClasses, pluginList, pluginResources, plugins |
Constructor Summary | |
DefaultGrailsPluginManager(java.lang.String resourcePath, GrailsApplication application)
|
|
DefaultGrailsPluginManager(String[] pluginResources, GrailsApplication application)
|
|
DefaultGrailsPluginManager(Class[] plugins, GrailsApplication application)
|
|
DefaultGrailsPluginManager(Resource[] pluginFiles, GrailsApplication application)
|
Method Summary | |
---|---|
protected boolean
|
canRegisterPlugin(GrailsPlugin plugin)
|
void
|
checkForChanges()
|
void
|
doDynamicMethods()
|
void
|
doWebDescriptor(Resource descriptor, java.io.Writer target)
|
void
|
doWebDescriptor(java.io.File descriptor, java.io.Writer target)
|
protected void
|
evictPlugin(GrailsPlugin evictor, java.lang.String evicteeName)
|
java.util.Collection
|
getPluginObservers(GrailsPlugin plugin)
|
ServletContext
|
getServletContext()
|
GrailsPlugin[]
|
getUserPlugins()
|
static java.lang.String
|
getWeb23DTD()
|
void
|
informObservers(java.lang.String pluginName, java.util.Map event)
|
void
|
informPluginsOfConfigChange()
|
void
|
loadPlugins()
|
void
|
refreshPlugin(java.lang.String name)
|
void
|
setApplication(GrailsApplication application)
|
void
|
setApplicationContext(ApplicationContext applicationContext)
|
void
|
setParentApplicationContext(ApplicationContext parent)
|
void
|
setServletContext(ServletContext servletContext)
|
void
|
startPluginChangeScanner()
|
void
|
stopPluginChangeScanner()
|
Constructor Detail |
---|
public DefaultGrailsPluginManager(java.lang.String resourcePath, GrailsApplication application)
public DefaultGrailsPluginManager(String[] pluginResources, GrailsApplication application)
public DefaultGrailsPluginManager(Class[] plugins, GrailsApplication application)
public DefaultGrailsPluginManager(Resource[] pluginFiles, GrailsApplication application)
Method Detail |
---|
protected boolean canRegisterPlugin(GrailsPlugin plugin)
public void checkForChanges()
@Override public void doDynamicMethods()
public void doWebDescriptor(Resource descriptor, java.io.Writer target)
public void doWebDescriptor(java.io.File descriptor, java.io.Writer target)
protected void evictPlugin(GrailsPlugin evictor, java.lang.String evicteeName)
public java.util.Collection getPluginObservers(GrailsPlugin plugin)
public ServletContext getServletContext()
public GrailsPlugin[] getUserPlugins()
public static java.lang.String getWeb23DTD()
@SuppressWarnings("rawtypes") public void informObservers(java.lang.String pluginName, java.util.Map event)
public void informPluginsOfConfigChange()
public void loadPlugins()
public void refreshPlugin(java.lang.String name)
@Override public void setApplication(GrailsApplication application)
@Override public void setApplicationContext(ApplicationContext applicationContext)
public void setParentApplicationContext(ApplicationContext parent)
public void setServletContext(ServletContext servletContext)
public void startPluginChangeScanner()
public void stopPluginChangeScanner()
Groovy Documentation