|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport org.codehaus.groovy.grails.plugins.AbstractGrailsPlugin org.codehaus.groovy.grails.plugins.DefaultGrailsPlugin
@SuppressWarnings("rawtypes") public class DefaultGrailsPlugin extends AbstractGrailsPlugin
Implementation of the GrailsPlugin interface that wraps a Groovy plugin class and provides the magic to invoke its various methods from Java.
Field Summary | |
---|---|
protected BeanWrapper |
pluginBean
|
Fields inherited from class AbstractGrailsPlugin | |
---|---|
application, applicationContext, dependencies, dependencyNames, evictionList, isBase, manager, pluginClass, version |
Constructor Summary | |
DefaultGrailsPlugin(java.lang.Class pluginClass, Resource resource, GrailsApplication application)
|
|
DefaultGrailsPlugin(java.lang.Class pluginClass, GrailsApplication application)
|
Method Summary | |
---|---|
void
|
addExclude(BuildScope buildScope)
|
void
|
addExclude(Environment env)
|
BeanBuilder
|
beans(groovy.lang.Closure closure)
|
boolean
|
checkForChanges()
Monitors the plugin resources defined in the watchResources property for changes and fires onChange events by calling an onChange closure defined in the plugin (if it exists) |
void
|
doArtefactConfiguration()
|
void
|
doWithApplicationContext(ApplicationContext ctx)
|
void
|
doWithDynamicMethods(ApplicationContext ctx)
|
void
|
doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
|
void
|
doWithWebDescriptor(groovy.util.slurpersupport.GPathResult webXml)
|
void
|
doc(java.lang.String text)
|
protected void
|
fireModifiedEvent(Resource resource, GrailsPlugin grailsPlugin)
|
String[]
|
getDependencyNames()
|
java.lang.String
|
getDependentVersion(java.lang.String name)
|
Resource
|
getDescriptor()
|
java.lang.String
|
getFullName()
|
groovy.lang.GroovyObject
|
getInstance()
|
String[]
|
getLoadAfterNames()
|
String[]
|
getLoadBeforeNames()
|
Log
|
getLog()
|
java.lang.String
|
getName()
|
String[]
|
getObservedPluginNames()
|
ApplicationContext
|
getParentCtx()
|
GrailsPlugin
|
getPlugin()
|
Resource
|
getPluginDir()
|
java.util.List
|
getPluginExcludes()
|
java.util.Map
|
getProperties()
|
Class[]
|
getProvidedArtefacts()
|
PathMatchingResourcePatternResolver
|
getResolver()
@return the resolver |
java.util.Collection
|
getTypeFilters()
|
Resource[]
|
getWatchedResources()
@return the watchedResources |
boolean
|
isEnabled()
|
void
|
notifyOfEvent(java.util.Map event)
|
java.util.Map
|
notifyOfEvent(int eventKind, java.lang.Object source)
|
void
|
refresh()
|
void
|
refresh(boolean fireEvent)
|
void
|
restartContainer()
|
void
|
setParentApplicationContext(ApplicationContext parent)
|
void
|
setWatchedResources(Resource[] watchedResources)
|
boolean
|
supportsCurrentScopeAndEnvironment()
|
boolean
|
supportsEnvironment(Environment environment)
|
boolean
|
supportsScope(BuildScope buildScope)
|
java.lang.String
|
toString()
|
Methods inherited from class groovy.lang.GroovyObjectSupport | |
---|---|
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), 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() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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 |
---|
protected BeanWrapper pluginBean
Constructor Detail |
---|
public DefaultGrailsPlugin(java.lang.Class pluginClass, Resource resource, GrailsApplication application)
public DefaultGrailsPlugin(java.lang.Class pluginClass, GrailsApplication application)
Method Detail |
---|
public void addExclude(BuildScope buildScope)
public void addExclude(Environment env)
public BeanBuilder beans(groovy.lang.Closure closure)
@Override public boolean checkForChanges()
public void doArtefactConfiguration()
public void doWithApplicationContext(ApplicationContext ctx)
public void doWithDynamicMethods(ApplicationContext ctx)
public void doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
@Override public void doWithWebDescriptor(groovy.util.slurpersupport.GPathResult webXml)
public void doc(java.lang.String text)
protected void fireModifiedEvent(Resource resource, @SuppressWarnings("unused") GrailsPlugin grailsPlugin)
@Override public String[] getDependencyNames()
@Override public java.lang.String getDependentVersion(java.lang.String name)
public Resource getDescriptor()
public java.lang.String getFullName()
public groovy.lang.GroovyObject getInstance()
@Override public String[] getLoadAfterNames()
@Override public String[] getLoadBeforeNames()
public Log getLog()
@Override public java.lang.String getName()
public String[] getObservedPluginNames()
public ApplicationContext getParentCtx()
public GrailsPlugin getPlugin()
public Resource getPluginDir()
public java.util.List getPluginExcludes()
public java.util.Map getProperties()
public Class[] getProvidedArtefacts()
public PathMatchingResourcePatternResolver getResolver()
public java.util.Collection getTypeFilters()
public Resource[] getWatchedResources()
public boolean isEnabled()
public void notifyOfEvent(java.util.Map event)
@SuppressWarnings("serial") public java.util.Map notifyOfEvent(int eventKind, java.lang.Object source)
@Override public void refresh()
public void refresh(boolean fireEvent)
public void restartContainer()
public void setParentApplicationContext(ApplicationContext parent)
public void setWatchedResources(Resource[] watchedResources)
public boolean supportsCurrentScopeAndEnvironment()
public boolean supportsEnvironment(Environment environment)
public boolean supportsScope(BuildScope buildScope)
@Override public java.lang.String toString()
Groovy Documentation