|
Groovy Documentation | |||||||
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 extends java.lang.Object
Abstract implementation of the GrailsPluginManager interface
Field Summary | |
---|---|
static java.lang.String |
CONFIG_FILE
|
protected GrailsApplication |
application
|
protected org.springframework.context.ApplicationContext |
applicationContext
|
protected java.util.Map |
classNameToPluginMap
|
protected java.util.Map |
failedPlugins
|
protected boolean |
initialised
|
protected boolean |
loadCorePlugins
|
protected java.lang.Class[] |
pluginClasses
|
protected java.util.List |
pluginList
|
protected org.springframework.core.io.Resource[] |
pluginResources
|
protected java.util.Map |
plugins
|
Constructor Summary | |
AbstractGrailsPluginManager(GrailsApplication application)
|
Method Summary | |
---|---|
protected void
|
checkInitialised()
|
void
|
doArtefactConfiguration()
|
void
|
doDynamicMethods()
|
void
|
doPostProcessing(org.springframework.context.ApplicationContext ctx)
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()
|
GrailsPlugin[]
|
getFailedLoadPlugins()
|
GrailsPlugin
|
getFailedPlugin(java.lang.String name)
|
GrailsPlugin
|
getGrailsPlugin(java.lang.String name)
|
GrailsPlugin
|
getGrailsPlugin(java.lang.String name, java.lang.Object version)
|
GrailsPlugin
|
getGrailsPluginForClassName(java.lang.String name)
|
GrailsPlugin
|
getPluginForClass(java.lang.Class theClass)
|
GrailsPlugin
|
getPluginForInstance(java.lang.Object instance)
|
java.lang.String
|
getPluginPath(java.lang.String name)
|
java.lang.String
|
getPluginPathForClass(java.lang.Class theClass)
|
java.lang.String
|
getPluginPathForInstance(java.lang.Object instance)
|
org.springframework.core.io.Resource[]
|
getPluginResources()
|
java.lang.String
|
getPluginViewsPathForClass(java.lang.Class theClass)
|
java.lang.String
|
getPluginViewsPathForInstance(java.lang.Object instance)
|
java.util.List
|
getTypeFilters()
|
boolean
|
hasGrailsPlugin(java.lang.String name)
|
void
|
informOfClassChange(java.lang.Class aClass)
|
void
|
informOfClassChange(java.io.File file, java.lang.Class cls)
|
void
|
informOfFileChange(java.io.File file)
|
void
|
informPluginsOfConfigChange()
|
boolean
|
isInitialised()
@return the initialised |
void
|
registerProvidedArtefacts(GrailsApplication app)
|
void
|
setApplication(GrailsApplication application)
|
void
|
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void
|
setLoadCorePlugins(boolean shouldLoadCorePlugins)
|
void
|
shutdown()
|
boolean
|
supportsCurrentBuildScope(java.lang.String pluginName)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String CONFIG_FILE
protected GrailsApplication application
protected org.springframework.context.ApplicationContext applicationContext
protected java.util.Map classNameToPluginMap
protected java.util.Map failedPlugins
protected boolean initialised
protected boolean loadCorePlugins
protected java.lang.Class[] pluginClasses
protected java.util.List pluginList
protected org.springframework.core.io.Resource[] pluginResources
protected java.util.Map plugins
Constructor Detail |
---|
public AbstractGrailsPluginManager(GrailsApplication application)
Method Detail |
---|
protected void checkInitialised()
public void doArtefactConfiguration()
public void doDynamicMethods()
public void doPostProcessing(org.springframework.context.ApplicationContext ctx)
public void doRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
springConfig
- The RuntimeSpringConfiguration instance
public void doRuntimeConfiguration(java.lang.String pluginName, RuntimeSpringConfiguration springConfig)
public GrailsPlugin[] getAllPlugins()
public GrailsPlugin[] getFailedLoadPlugins()
public GrailsPlugin getFailedPlugin(java.lang.String name)
public GrailsPlugin getGrailsPlugin(java.lang.String name)
public GrailsPlugin getGrailsPlugin(java.lang.String name, java.lang.Object version)
public GrailsPlugin getGrailsPluginForClassName(java.lang.String name)
public GrailsPlugin getPluginForClass(java.lang.Class theClass)
public GrailsPlugin getPluginForInstance(java.lang.Object instance)
public java.lang.String getPluginPath(java.lang.String name)
public java.lang.String getPluginPathForClass(java.lang.Class theClass)
public java.lang.String getPluginPathForInstance(java.lang.Object instance)
public org.springframework.core.io.Resource[] getPluginResources()
public java.lang.String getPluginViewsPathForClass(java.lang.Class theClass)
public java.lang.String getPluginViewsPathForInstance(java.lang.Object instance)
public java.util.List getTypeFilters()
public boolean hasGrailsPlugin(java.lang.String name)
public void informOfClassChange(java.lang.Class aClass)
public void informOfClassChange(java.io.File file, @SuppressWarnings("rawtypes") java.lang.Class cls)
public void informOfFileChange(java.io.File file)
public void informPluginsOfConfigChange()
public boolean isInitialised()
public void registerProvidedArtefacts(GrailsApplication app)
public void setApplication(GrailsApplication application)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public void setLoadCorePlugins(boolean shouldLoadCorePlugins)
public void shutdown()
public boolean supportsCurrentBuildScope(java.lang.String pluginName)
Groovy Documentation