|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
org.codehaus.groovy.grails.plugins.AbstractGrailsPlugin
org.codehaus.groovy.grails.plugins.support.aware.AwarePlugin
public class AwarePlugin
Grails plugin that registers *Aware
BeanPostProcessor
s.
Field Summary |
---|
Fields inherited from class org.codehaus.groovy.grails.plugins.AbstractGrailsPlugin |
---|
application, applicationContext, dependencies, dependencyNames, evictionList, manager, pluginClass, version |
Fields inherited from interface org.codehaus.groovy.grails.plugins.GrailsPlugin |
---|
ARTEFACTS, DEPENDS_ON, DO_WITH_APPLICATION_CONTEXT, DO_WITH_DYNAMIC_METHODS, DO_WITH_SPRING, DO_WITH_WEB_DESCRIPTOR, EVENT_ON_CHANGE, EVENT_ON_CONFIG_CHANGE, EVENT_ON_SHUTDOWN, EVICT, INFLUENCES, ON_CHANGE, ON_CONFIG_CHANGE, ON_SHUTDOWN, PLUGINS_PATH, PROVIDED_ARTEFACTS, STATUS, STATUS_DISABLED, STATUS_ENABLED, TRAILING_NAME, VERSION, WATCHED_RESOURCES |
Constructor Summary | |
---|---|
AwarePlugin(java.lang.Class pluginClass,
GrailsApplication application)
|
Method Summary | |
---|---|
void |
doArtefactConfiguration()
Called prior to the initialisation of the GrailsApplication instance to allow the registration of additonal ArtefactHandlers |
void |
doWithApplicationContext(org.springframework.context.ApplicationContext applicationContext)
This method is called to allow the plugin to add BeanDefinition s
to the BeanDefinitionRegistry . |
void |
doWithDynamicMethods(org.springframework.context.ApplicationContext applicationContext)
Calls a "doWithDynamicMethods" closure that allows a plugin to register dynamic methods at runtime |
void |
doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
Executes the plugin code that performs runtime configuration as defined in the doWithSpring closure |
groovy.lang.GroovyObject |
getInstance()
Retrieves the wrapped plugin instance for this plugin |
java.lang.String[] |
getObservedPluginNames()
Retrieve the plugin names that this plugin is observing for changes |
java.lang.Class[] |
getProvidedArtefacts()
Retrieves an array of provided Artefacts that are pre-compiled additions to the GrailsApplication object but are overridable by the end-user |
boolean |
isEnabled()
|
java.util.Map |
notifyOfEvent(int eventKind,
java.lang.Object source)
Notifies the plugin of a specific event for the given event id, which is one of ON_CHANGE, ON_CONFIG_CHANGE |
void |
notifyOfEvent(java.util.Map event)
Notifies this plugin of the specified Event calling the onChange listener |
protected void |
registerClassLoaderAwareBeanPostProcessor(org.springframework.context.ApplicationContext applicationContext,
java.lang.ClassLoader classLoader)
|
protected void |
registerGrailsApplicationAwareBeanPostProcessor(org.springframework.context.ApplicationContext applicationContext,
GrailsApplication grailsApplication)
|
Methods inherited from class org.codehaus.groovy.grails.plugins.AbstractGrailsPlugin |
---|
checkForChanges, doWithWebDescriptor, getDependencyNames, getDependentVersion, getEvictionNames, getLoadAfterNames, getManager, getName, getPluginPath, getVersion, refresh, setApplication, setApplicationContext, setManager |
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AwarePlugin(java.lang.Class pluginClass, GrailsApplication application)
Method Detail |
---|
public void doWithApplicationContext(org.springframework.context.ApplicationContext applicationContext)
GrailsPlugin
This method is called to allow the plugin to add BeanDefinition
s
to the BeanDefinitionRegistry
.
doWithApplicationContext
in interface GrailsPlugin
doWithApplicationContext
in class AbstractGrailsPlugin
applicationContext
- The Spring ApplicationContext instanceprotected void registerGrailsApplicationAwareBeanPostProcessor(org.springframework.context.ApplicationContext applicationContext, GrailsApplication grailsApplication)
protected void registerClassLoaderAwareBeanPostProcessor(org.springframework.context.ApplicationContext applicationContext, java.lang.ClassLoader classLoader)
public void doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
GrailsPlugin
doWithRuntimeConfiguration
in interface GrailsPlugin
doWithRuntimeConfiguration
in class AbstractGrailsPlugin
springConfig
- The RuntimeSpringConfiguration instancepublic groovy.lang.GroovyObject getInstance()
GrailsPlugin
public void doWithDynamicMethods(org.springframework.context.ApplicationContext applicationContext)
GrailsPlugin
applicationContext
- The Spring ApplicationContext instancepublic boolean isEnabled()
public java.lang.String[] getObservedPluginNames()
GrailsPlugin
public void notifyOfEvent(java.util.Map event)
GrailsPlugin
event
- The event to listen forpublic java.util.Map notifyOfEvent(int eventKind, java.lang.Object source)
GrailsPlugin
eventKind
- The event kindsource
- The source of the event
public void doArtefactConfiguration()
GrailsPlugin
doArtefactConfiguration
in interface GrailsPlugin
doArtefactConfiguration
in class AbstractGrailsPlugin
ArtefactHandler
public java.lang.Class[] getProvidedArtefacts()
GrailsPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |