|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.grails.plugins.AbstractGrailsPluginManager
public abstract class AbstractGrailsPluginManager
Abstract implementation of the GrailsPluginManager interface
Field Summary | |
---|---|
protected GrailsApplication |
application
|
protected org.springframework.context.ApplicationContext |
applicationContext
|
protected java.util.Map |
failedPlugins
|
protected boolean |
initialised
|
protected java.lang.Class[] |
pluginClasses
|
protected java.util.List |
pluginList
|
protected org.springframework.core.io.Resource[] |
pluginResources
|
protected java.util.Map |
plugins
|
Fields inherited from interface org.codehaus.groovy.grails.plugins.GrailsPluginManager |
---|
BEAN_NAME |
Constructor Summary | |
---|---|
AbstractGrailsPluginManager(GrailsApplication application)
|
Method Summary | |
---|---|
protected void |
checkInitialised()
|
void |
doArtefactConfiguration()
Called prior to the initialisation of the GrailsApplication object to allow registration of additional ArtefactHandler objects |
void |
doDynamicMethods()
This is called on all plugins so that they can add new methods/properties/constructors etc. |
void |
doPostProcessing(org.springframework.context.ApplicationContext applicationContext)
Base implementation that will simply go through each plugin and call doWithApplicationContext on each |
void |
doRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
Base implementation that simply goes through the list of plugins and calls doWithRuntimeConfiguration on each |
void |
doRuntimeConfiguration(java.lang.String pluginName,
RuntimeSpringConfiguration springConfig)
Base implementation that will perform runtime configuration for the specified plugin name |
GrailsPlugin[] |
getAllPlugins()
Returns an array of all the loaded plug-ins |
GrailsPlugin |
getFailedPlugin(java.lang.String name)
Retrieves a plug-in that failed to load, or null if it doesn't exist |
GrailsPlugin |
getGrailsPlugin(java.lang.String name)
Retrieves a name Grails plugin instance |
GrailsPlugin |
getGrailsPlugin(java.lang.String name,
java.lang.Object version)
Retrieves a plug-in for its name and version |
org.springframework.core.io.Resource[] |
getPluginResources()
|
boolean |
hasGrailsPlugin(java.lang.String name)
|
boolean |
isInitialised()
|
void |
registerProvidedArtefacts(GrailsApplication application)
Registers pre-compiled artefacts with the GrailsApplication instance, only overriding if the application doesn't already provide an artefact of the same name |
void |
setApplication(GrailsApplication application)
Sets the GrailsApplication used be this plugin manager |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
shutdown()
Shuts down the PluginManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.groovy.grails.plugins.GrailsPluginManager |
---|
checkForChanges, doWebDescriptor, doWebDescriptor, getPluginObservers, informObservers, loadPlugins, refreshPlugin |
Methods inherited from interface org.springframework.web.context.ServletContextAware |
---|
setServletContext |
Field Detail |
---|
protected java.util.List pluginList
protected GrailsApplication application
protected org.springframework.core.io.Resource[] pluginResources
protected java.util.Map plugins
protected java.lang.Class[] pluginClasses
protected boolean initialised
protected org.springframework.context.ApplicationContext applicationContext
protected java.util.Map failedPlugins
Constructor Detail |
---|
public AbstractGrailsPluginManager(GrailsApplication application)
Method Detail |
---|
public GrailsPlugin[] getAllPlugins()
GrailsPluginManager
getAllPlugins
in interface GrailsPluginManager
public boolean isInitialised()
isInitialised
in interface GrailsPluginManager
protected void checkInitialised()
public GrailsPlugin getFailedPlugin(java.lang.String name)
GrailsPluginManager
getFailedPlugin
in interface GrailsPluginManager
name
- The name of the plugin
public void doRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
doRuntimeConfiguration
in interface GrailsPluginManager
springConfig
- The RuntimeSpringConfiguration instancepublic void doRuntimeConfiguration(java.lang.String pluginName, RuntimeSpringConfiguration springConfig)
doRuntimeConfiguration
in interface GrailsPluginManager
pluginName
- The name of he pluginspringConfig
- The runtime spring config instancepublic void doPostProcessing(org.springframework.context.ApplicationContext applicationContext)
doPostProcessing
in interface GrailsPluginManager
applicationContext
- The ApplicationContext instancepublic org.springframework.core.io.Resource[] getPluginResources()
public GrailsPlugin getGrailsPlugin(java.lang.String name)
GrailsPluginManager
getGrailsPlugin
in interface GrailsPluginManager
name
- The name of the plugin
public GrailsPlugin getGrailsPlugin(java.lang.String name, java.lang.Object version)
GrailsPluginManager
getGrailsPlugin
in interface GrailsPluginManager
name
- The name of the pluginversion
- The version of the plugin
public boolean hasGrailsPlugin(java.lang.String name)
hasGrailsPlugin
in interface GrailsPluginManager
name
- The name of the plugin
public void doDynamicMethods()
GrailsPluginManager
doDynamicMethods
in interface GrailsPluginManager
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setApplication(GrailsApplication application)
GrailsPluginManager
setApplication
in interface GrailsPluginManager
application
- The GrailsApplication instancepublic void registerProvidedArtefacts(GrailsApplication application)
GrailsPluginManager
registerProvidedArtefacts
in interface GrailsPluginManager
application
- The GrailsApplication objectpublic void doArtefactConfiguration()
GrailsPluginManager
doArtefactConfiguration
in interface GrailsPluginManager
ArtefactHandler
public void shutdown()
GrailsPluginManager
shutdown
in interface GrailsPluginManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |