public abstract class AbstractGrailsPlugin extends groovy.lang.GroovyObjectSupport implements GrailsPlugin
Abstract implementation that provides some default behaviours
Modifiers | Name | Description |
---|---|---|
class |
AbstractGrailsPlugin.GrailsPluginClass |
Wrapper Grails class for plugins. |
Modifiers | Name | Description |
---|---|---|
private static java.util.List<java.lang.String> |
DEFAULT_CONFIG_IGNORE_LIST |
|
private static org.slf4j.Logger |
LOG |
|
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 |
|
private static org.springframework.core.io.Resource |
basePluginResource |
|
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 |
Constructor and description |
---|
AbstractGrailsPlugin
(java.lang.Class<?> pluginClass, GrailsApplication application) |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
checkForChanges() |
|
public int |
compareTo(java.lang.Object o) |
|
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() |
|
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) |
|
public int |
hashCode() |
|
public boolean |
isBasePlugin() |
|
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) |
Methods inherited from class | Name |
---|---|
class groovy.lang.GroovyObjectSupport |
groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), 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(), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object) |