public abstract class AbstractGrailsPluginManager extends java.lang.Object
Abstract implementation of the GrailsPluginManager interface
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
CONFIG_FILE |
|
protected GrailsApplication |
application |
|
protected org.springframework.context.ApplicationContext |
applicationContext |
|
protected java.util.Map<java.lang.String, GrailsPlugin> |
classNameToPluginMap |
|
protected java.util.Map<java.lang.String, GrailsPlugin> |
failedPlugins |
|
protected boolean |
initialised |
|
protected boolean |
loadCorePlugins |
|
protected java.lang.Class<?>[] |
pluginClasses |
|
protected java.util.List<GrailsPlugin> |
pluginList |
|
protected org.springframework.core.io.Resource[] |
pluginResources |
|
protected java.util.Map<java.lang.String, GrailsPlugin> |
plugins |
|
protected boolean |
shutdown |
Constructor and description |
---|
AbstractGrailsPluginManager
(GrailsApplication application) |
Type Params | Return Type | Name and description |
---|---|---|
|
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<org.springframework.core.type.filter.TypeFilter> |
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 |
|
boolean |
isShutdown() |
|
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 | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
Base implementation that will simply go through each plugin and call doWithApplicationContext on each.
Base implementation that simply goes through the list of plugins and calls doWithRuntimeConfiguration on each
springConfig
- The RuntimeSpringConfiguration instanceBase implementation that will perform runtime configuration for the specified plugin name.