@java.lang.SuppressWarnings("rawtypes") public class DefaultGrailsPlugin extends AbstractGrailsPlugin implements ParentApplicationContextAware
Implementation of the GrailsPlugin interface that wraps a Groovy plugin class and provides the magic to invoke its various methods from Java.
Modifiers | Name | Description |
---|---|---|
protected static org.apache.commons.logging.Log |
LOG |
|
protected org.springframework.beans.BeanWrapper |
pluginBean |
Fields inherited from class | Fields |
---|---|
class AbstractGrailsPlugin |
PLUGIN_GROOVY, PLUGIN_GROOVY_PATH, PLUGIN_YML, PLUGIN_YML_PATH, applicationContext, config, dependencies, dependencyNames, evictionList, grailsApplication, isBase, manager, pluginClass, propertySource, version |
Constructor and description |
---|
DefaultGrailsPlugin
(java.lang.Class<?> pluginClass, org.springframework.core.io.Resource resource, GrailsApplication application) |
DefaultGrailsPlugin
(java.lang.Class<?> pluginClass, GrailsApplication application) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
addExclude(Environment env) |
|
public BeanBuilder |
beans(groovy.lang.Closure closure) |
|
public java.lang.Object |
call(java.lang.Object arguments) |
|
public void |
doArtefactConfiguration() |
|
public void |
doWithApplicationContext(org.springframework.context.ApplicationContext ctx) |
|
public void |
doWithDynamicMethods(org.springframework.context.ApplicationContext ctx) |
|
public void |
doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig) |
|
public void |
doc(java.lang.String text)
|
|
public java.lang.String[] |
getDependencyNames() |
|
public java.lang.String |
getDependentVersion(java.lang.String name) |
|
public Resource |
getDescriptor() |
|
public java.lang.String |
getFullName() |
|
public groovy.lang.GroovyObject |
getInstance() |
|
public java.lang.String[] |
getLoadAfterNames() |
|
public java.lang.String[] |
getLoadBeforeNames() |
|
public org.apache.commons.logging.Log |
getLog() |
|
public java.lang.String |
getName() |
|
public java.lang.String[] |
getObservedPluginNames() |
|
public org.springframework.context.ApplicationContext |
getParentCtx() |
|
public GrailsPlugin |
getPlugin() |
|
public Resource |
getPluginDir() |
|
public java.util.List<java.lang.String> |
getPluginExcludes() |
|
public java.util.Map |
getProperties() |
|
public java.lang.Class<?>[] |
getProvidedArtefacts() |
|
public org.springframework.core.io.support.PathMatchingResourcePatternResolver |
getResolver()
|
|
public java.util.Collection<? extends org.springframework.core.type.filter.TypeFilter> |
getTypeFilters() |
|
public java.util.List<WatchPattern> |
getWatchedResourcePatterns() |
|
public org.springframework.core.io.Resource[] |
getWatchedResources()
|
|
public boolean |
hasInterestInChange(java.lang.String path) |
|
public boolean |
isEnabled(java.lang.String[] activeProfiles) |
|
public boolean |
isEnabled() |
|
public void |
notifyOfEvent(java.util.Map event) |
|
public java.util.Map |
notifyOfEvent(int eventKind, java.lang.Object source) |
|
public void |
refresh() |
|
public void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
|
public void |
setDescriptor(org.springframework.core.io.Resource descriptor) |
|
public void |
setManager(GrailsPluginManager manager) |
|
public void |
setParentApplicationContext(org.springframework.context.ApplicationContext parent) |
|
public void |
setWatchedResources(org.springframework.core.io.Resource[] watchedResources) |
|
public boolean |
supportsCurrentScopeAndEnvironment() |
|
public boolean |
supportsEnvironment(Environment environment) |
|
public java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class AbstractGrailsPlugin |
checkForChanges, compareTo, equals, getConfigurationResource, getDependencyNames, getDependentVersion, getEvictionNames, getFileSystemName, getFileSystemShortName, getLoadAfterNames, getLoadBeforeNames, getManager, getName, getPluginClass, getPluginPath, getPluginPathCamelCase, getPropertySource, getVersion, getWatchedResourcePatterns, hasInterestInChange, hashCode, isBasePlugin, isEnabled, readPluginConfiguration, refresh, setApplication, setApplicationContext, setBasePlugin, setManager |