|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.plugins.AbstractGrailsPluginManager
public abstract class AbstractGrailsPluginManager
Abstract implementation of the GrailsPluginManager interface
Field Summary | |
---|---|
protected GrailsApplication |
application
|
protected ApplicationContext |
applicationContext
|
protected Map |
failedPlugins
|
protected boolean |
initialised
|
protected Class[] |
pluginClasses
|
protected List |
pluginList
|
protected Resource[] |
pluginResources
|
protected 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(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(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(String name)
Retrieves a plug-in that failed to load, or null if it doesn't exist |
GrailsPlugin |
getGrailsPlugin(String name)
Retrieves a name Grails plugin instance |
GrailsPlugin |
getGrailsPlugin(String name,
Object version)
Retrieves a plug-in for its name and version |
Resource[] |
getPluginResources()
|
boolean |
hasGrailsPlugin(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(ApplicationContext applicationContext)
|
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 List pluginList
protected GrailsApplication application
protected Resource[] pluginResources
protected Map plugins
protected Class[] pluginClasses
protected boolean initialised
protected ApplicationContext applicationContext
protected 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(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(String pluginName, RuntimeSpringConfiguration springConfig)
doRuntimeConfiguration
in interface GrailsPluginManager
pluginName
- The name of he pluginspringConfig
- The runtime spring config instancepublic void doPostProcessing(ApplicationContext applicationContext)
doPostProcessing
in interface GrailsPluginManager
applicationContext
- The ApplicationContext instancepublic Resource[] getPluginResources()
public GrailsPlugin getGrailsPlugin(String name)
GrailsPluginManager
getGrailsPlugin
in interface GrailsPluginManager
name
- The name of the plugin
public GrailsPlugin getGrailsPlugin(String name, Object version)
GrailsPluginManager
getGrailsPlugin
in interface GrailsPluginManager
name
- The name of the pluginversion
- The version of the plugin
public boolean hasGrailsPlugin(String name)
hasGrailsPlugin
in interface GrailsPluginManager
name
- The name of the plugin
public void doDynamicMethods()
GrailsPluginManager
doDynamicMethods
in interface GrailsPluginManager
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |