AbstractGrailsPluginManager (Grails 3.2.9)
Date: 2017-04-26

Package: org.grails.plugins

## [Java] Class AbstractGrailsPluginManager

- org.grails.plugins.AbstractGrailsPluginManager

- All Implemented Interfaces and Traits:
    GrailsPluginManager

      public abstract class AbstractGrailsPluginManager
      extends java.lang.Object

  Abstract implementation of the GrailsPluginManager interface

  Authors:
    Graeme Rocher
  Since:
    0.4

- - ### Field Summary

    Fields
    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 Summary

    Constructors
    Constructor and description
    `AbstractGrailsPluginManager (GrailsApplication application)`

  - ### Methods Summary

    Methods
    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` | `getPluginPath(java.lang.String name, boolean forceCamelCase)`
    `` | `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
    `` | `protected boolean` | `isPluginDisabledForProfile(GrailsPlugin plugin)`
    `` | `boolean` | `isShutdown()`
    `` | `void` | `onStartup(java.util.Map<java.lang.String, java.lang.Object> event)`
    `` | `void` | `registerProvidedArtefacts(GrailsApplication app)`
    `` | `void` | `setApplication(GrailsApplication application)`
    `` | `void` | `setApplicationContext(org.springframework.context.ApplicationContext applicationContext)`
    `` | `void` | `setLoadCorePlugins(boolean shouldLoadCorePlugins)`
    `` | `void` | `setPluginFilter(PluginFilter pluginFilter)`
    `` | `void` | `shutdown()`
    `` | `boolean` | `supportsCurrentBuildScope(java.lang.String pluginName)`

  - ### Inherited Methods Summary

    Inherited Methods
    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()`

- - ### Field Detail

    - #### public static final 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 Detail

    - #### public AbstractGrailsPluginManager(GrailsApplication application)

  - ### Method Detail

    - #### protected void checkInitialised()

    - #### public void doArtefactConfiguration()

    - #### public void doDynamicMethods()

    - #### public void doPostProcessing(org.springframework.context.ApplicationContext ctx)

      Base implementation that will simply go through each plugin and call doWithApplicationContext on each.

    - #### public void doRuntimeConfiguration(RuntimeSpringConfiguration springConfig)

      Base implementation that simply goes through the list of plugins and calls doWithRuntimeConfiguration on each

      Parameters:
        `springConfig` - The RuntimeSpringConfiguration instance

    - #### public void doRuntimeConfiguration(java.lang.String pluginName, RuntimeSpringConfiguration springConfig)

      Base implementation that will perform runtime configuration for the specified plugin name.

    - #### 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 getPluginPath(java.lang.String name, boolean forceCamelCase)

    - #### 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<org.springframework.core.type.filter.TypeFilter> getTypeFilters()

    - #### public boolean hasGrailsPlugin(java.lang.String name)

    - #### public void informOfClassChange(java.lang.Class<?> aClass)

    - #### public void informOfClassChange(java.io.File file, @java.lang.SuppressWarnings("rawtypes") java.lang.Class cls)

    - #### public void informOfFileChange(java.io.File file)

    - #### @java.lang.Override public void informPluginsOfConfigChange()

    - #### public boolean isInitialised()

      Returns:
        the initialised

    - #### protected boolean isPluginDisabledForProfile(GrailsPlugin plugin)

    - #### public boolean isShutdown()

    - #### public void onStartup(java.util.Map<java.lang.String, java.lang.Object> event)

    - #### public void registerProvidedArtefacts(GrailsApplication app)

    - #### public void setApplication(GrailsApplication application)

    - #### public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)

    - #### public void setLoadCorePlugins(boolean shouldLoadCorePlugins)

    - #### @java.lang.Override public void setPluginFilter(PluginFilter pluginFilter)

    - #### public void shutdown()

    - #### @java.lang.Deprecated public boolean supportsCurrentBuildScope(java.lang.String pluginName)