Package: org.grails.plugins

## [Java] Class AbstractGrailsPlugin

- org.grails.plugins.AbstractGrailsPlugin

- All Implemented Interfaces and Traits:
    GrailsPlugin

      public abstract class AbstractGrailsPlugin
      extends groovy.lang.GroovyObjectSupport

  Abstract implementation that provides some default behaviours

  Authors:
    Graeme Rocher

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static java.lang.String` | `PLUGIN_GROOVY` |
    `static java.lang.String` | `PLUGIN_GROOVY_PATH` |
    `static java.lang.String` | `PLUGIN_YML` |
    `static java.lang.String` | `PLUGIN_YML_PATH` |
    `protected org.springframework.context.ApplicationContext` | `applicationContext` |
    `protected Config` | `config` |
    `protected java.util.Map<java.lang.String, java.lang.Object>` | `dependencies` |
    `protected java.lang.String[]` | `dependencyNames` |
    `protected java.lang.String[]` | `evictionList` |
    `protected GrailsApplication` | `grailsApplication` |
    `protected boolean` | `isBase` |
    `protected GrailsPluginManager` | `manager` |
    `protected java.lang.Class<?>` | `pluginClass` |
    `protected org.springframework.core.env.PropertySource<?>` | `propertySource` |
    `protected java.lang.String` | `version` |

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `java.lang.Object` | `AbstractGrailsPlugin(java.lang.Class<?> pluginClass, GrailsApplication application)`
    `` | `boolean` | `checkForChanges()`
    `` | `int` | `compareTo(java.lang.Object o)`
    `` | `boolean` | `equals(java.lang.Object o)`
    `` | `protected org.springframework.core.io.Resource` | `getConfigurationResource(java.lang.Class<?> pluginClass, java.lang.String path)`
    `` | `java.lang.String[]` | `getDependencyNames()`
    `` | `java.lang.String` | `getDependentVersion(java.lang.String name)`
    `` | `java.lang.String[]` | `getEvictionNames()`
    `` | `java.lang.String` | `getFileSystemName()`
    `` | `java.lang.String` | `getFileSystemShortName()`
    `` | `java.lang.String[]` | `getLoadAfterNames()`
    `` | `java.lang.String[]` | `getLoadBeforeNames()`
    `` | `GrailsPluginManager` | `getManager()`
    `` | `java.lang.String` | `getName()`
    `` | `java.lang.Class<?>` | `getPluginClass()`
    `` | `java.lang.String` | `getPluginPath()`
    `` | `java.lang.String` | `getPluginPathCamelCase()`
    `` | `org.springframework.core.env.PropertySource<?>` | `getPropertySource()`
    `` | `java.lang.String` | `getVersion()`
    `` | `java.util.List<WatchPattern>` | `getWatchedResourcePatterns()`
    `` | `boolean` | `hasInterestInChange(java.lang.String path)`
    `` | `int` | `hashCode()`
    `` | `boolean` | `isBasePlugin()`
    `` | `boolean` | `isEnabled(java.lang.String[] profiles)`
    `` | `protected org.springframework.core.io.Resource` | `readPluginConfiguration(java.lang.Class<?> pluginClass)`
    `` | `void` | `refresh()`
    `` | `void` | `setApplication(GrailsApplication application)`
    `` | `void` | `setApplicationContext(org.springframework.context.ApplicationContext applicationContext)`
    `` | `void` | `setBasePlugin(boolean isBase)`
    `` | `void` | `setManager(GrailsPluginManager manager)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class groovy.lang.GroovyObjectSupport` | `groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll()`
    `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 PLUGIN_GROOVY

    - #### public static final java.lang.String PLUGIN_GROOVY_PATH

    - #### public static final java.lang.String PLUGIN_YML

    - #### public static final java.lang.String PLUGIN_YML_PATH

    - #### protected org.springframework.context.ApplicationContext applicationContext

    - #### protected Config config

    - #### protected java.util.Map<java.lang.String, java.lang.Object> dependencies

    - #### protected java.lang.String[] dependencyNames

    - #### protected java.lang.String[] evictionList

    - #### protected GrailsApplication grailsApplication

    - #### protected boolean isBase

    - #### protected GrailsPluginManager manager

    - #### protected java.lang.Class<?> pluginClass

    - #### protected org.springframework.core.env.PropertySource<?> propertySource

    - #### protected java.lang.String version

  - ### Method Detail

    - #### public java.lang.Object AbstractGrailsPlugin(java.lang.Class<?> pluginClass, GrailsApplication application)

    - #### public boolean checkForChanges()

    - #### public int compareTo(java.lang.Object o)

    - #### @java.lang.Override public boolean equals(java.lang.Object o)

    - #### protected org.springframework.core.io.Resource getConfigurationResource(java.lang.Class<?> pluginClass, java.lang.String path)

    - #### public java.lang.String[] getDependencyNames()

    - #### public java.lang.String getDependentVersion(java.lang.String name)

    - #### public java.lang.String[] getEvictionNames()

    - #### public java.lang.String getFileSystemName()

    - #### public java.lang.String getFileSystemShortName()

    - #### public java.lang.String[] getLoadAfterNames()

    - #### public java.lang.String[] getLoadBeforeNames()

    - #### public GrailsPluginManager getManager()

    - #### public java.lang.String getName()

    - #### public java.lang.Class<?> getPluginClass()

    - #### public java.lang.String getPluginPath()

    - #### public java.lang.String getPluginPathCamelCase()

    - #### @java.lang.Override public org.springframework.core.env.PropertySource<?> getPropertySource()

    - #### public java.lang.String getVersion()

    - #### public java.util.List<WatchPattern> getWatchedResourcePatterns()

    - #### public boolean hasInterestInChange(java.lang.String path)

    - #### @java.lang.Override public int hashCode()

    - #### public boolean isBasePlugin()

    - #### @java.lang.Override public boolean isEnabled(java.lang.String[] profiles)

    - #### protected org.springframework.core.io.Resource readPluginConfiguration(java.lang.Class<?> pluginClass)

    - #### public void refresh()

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

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

    - #### public void setBasePlugin(boolean isBase)

    - #### public void setManager(GrailsPluginManager manager)