|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.grails.plugin.platform.events.EventsImpl
class EventsImpl
Field Summary | |
---|---|
private org.springframework.context.ApplicationContext |
applicationContext
|
private static java.lang.Object |
log
|
Property Summary | |
---|---|
static java.lang.String |
APP_NAMESPACE
|
static java.lang.Object |
dslArgumentsToMap
|
java.util.List |
eventDefinitions
|
org.codehaus.groovy.grails.commons.GrailsApplication |
grailsApplication
|
EventsPublisher |
grailsEventsPublisher
|
EventsRegistry |
grailsEventsRegistry
|
java.lang.Object |
injectedMethods
|
Constructor Summary | |
EventsImpl()
|
Method Summary | |
---|---|
private java.lang.Object
|
addItemFromArgs(java.lang.String topic, java.util.Map arguments, java.lang.String definingPlugin)
|
EventMessage
|
buildEvent(java.lang.String pluginName, java.lang.String namespace, java.lang.String topic, java.lang.Object data, java.util.Map params)
|
private void
|
checkNamespace(java.lang.Object pluginNs, java.lang.Object targetNs, java.lang.Object context = null)
|
void
|
clearEventDefinitions()
|
void
|
clearEvents(java.lang.Class serviceClass)
|
void
|
eachListener(java.util.Collection serviceClasses, groovy.lang.Closure c)
|
EventReply
|
event(java.lang.String namespace, java.lang.String topic, java.lang.Object data = null, java.util.Map params = [:], groovy.lang.Closure callback = null)
|
void
|
loadDSL(java.lang.Class dslClass)
|
void
|
loadDSL()
|
EventDefinition
|
matchesDefinition(java.lang.String topic, java.lang.reflect.Method method, java.lang.Class serviceClass)
|
protected void
|
parseDSL(java.util.List commands, java.lang.String definingPlugin)
Receives a graph of DSL commend objects and creates the necessary namespaces and items |
private boolean
|
processEventsDefinition(EventMessage message, java.util.Map params)
|
void
|
registerEvents(groovy.lang.Closure dsl)
|
void
|
registerListeners(java.util.Collection serviceClasses)
|
void
|
reloadListener(java.lang.Class serviceClass)
|
void
|
reloadListeners()
|
void
|
setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
|
java.lang.Object[]
|
waitFor(long l, java.util.concurrent.TimeUnit timeUnit, EventReply... replies)
|
java.lang.Object[]
|
waitFor(EventReply... replies)
|
Methods inherited from 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 |
---|
private org.springframework.context.ApplicationContext applicationContext
private static final java.lang.Object log
Property Detail |
---|
static final java.lang.String APP_NAMESPACE
static final java.lang.Object dslArgumentsToMap
java.util.List eventDefinitions
org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication
EventsPublisher grailsEventsPublisher
EventsRegistry grailsEventsRegistry
java.lang.Object injectedMethods
Constructor Detail |
---|
EventsImpl()
Method Detail |
---|
private java.lang.Object addItemFromArgs(java.lang.String topic, java.util.Map arguments, java.lang.String definingPlugin)
EventMessage buildEvent(java.lang.String pluginName, java.lang.String namespace, java.lang.String topic, java.lang.Object data, java.util.Map params)
private void checkNamespace(java.lang.Object pluginNs, java.lang.Object targetNs, java.lang.Object context = null)
void clearEventDefinitions()
void clearEvents(java.lang.Class serviceClass)
void eachListener(java.util.Collection serviceClasses, groovy.lang.Closure c)
EventReply event(java.lang.String namespace, java.lang.String topic, java.lang.Object data = null, java.util.Map params = [:], groovy.lang.Closure callback = null)
void loadDSL(java.lang.Class dslClass)
void loadDSL()
EventDefinition matchesDefinition(java.lang.String topic, java.lang.reflect.Method method, java.lang.Class serviceClass)
protected void parseDSL(java.util.List commands, java.lang.String definingPlugin)
private boolean processEventsDefinition(EventMessage message, java.util.Map params)
void registerEvents(groovy.lang.Closure dsl)
void registerListeners(java.util.Collection serviceClasses)
void reloadListener(java.lang.Class serviceClass)
void reloadListeners()
void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
java.lang.Object[] waitFor(long l, java.util.concurrent.TimeUnit timeUnit, EventReply... replies)
java.lang.Object[] waitFor(EventReply... replies)
Groovy Documentation