Groovy Documentation

org.grails.plugin.platform.events
[Groovy] Class EventsImpl

java.lang.Object
  org.grails.plugin.platform.events.EventsImpl
All Implemented Interfaces:
Events

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

applicationContext

private org.springframework.context.ApplicationContext applicationContext


log

private static final java.lang.Object log


 
Property Detail

APP_NAMESPACE

static final java.lang.String APP_NAMESPACE


dslArgumentsToMap

static final java.lang.Object dslArgumentsToMap


eventDefinitions

java.util.List eventDefinitions


grailsApplication

org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication


grailsEventsPublisher

EventsPublisher grailsEventsPublisher


grailsEventsRegistry

EventsRegistry grailsEventsRegistry


injectedMethods

java.lang.Object injectedMethods


 
Constructor Detail

EventsImpl

EventsImpl()


 
Method Detail

addItemFromArgs

private java.lang.Object addItemFromArgs(java.lang.String topic, java.util.Map arguments, java.lang.String definingPlugin)


buildEvent

EventMessage buildEvent(java.lang.String pluginName, java.lang.String namespace, java.lang.String topic, java.lang.Object data, java.util.Map params)


checkNamespace

private void checkNamespace(java.lang.Object pluginNs, java.lang.Object targetNs, java.lang.Object context = null)


clearEventDefinitions

void clearEventDefinitions()


clearEvents

void clearEvents(java.lang.Class serviceClass)


eachListener

void eachListener(java.util.Collection serviceClasses, groovy.lang.Closure c)


event

EventReply event(java.lang.String namespace, java.lang.String topic, java.lang.Object data = null, java.util.Map params = [:], groovy.lang.Closure callback = null)


loadDSL

void loadDSL(java.lang.Class dslClass)


loadDSL

void loadDSL()


matchesDefinition

EventDefinition matchesDefinition(java.lang.String topic, java.lang.reflect.Method method, java.lang.Class serviceClass)


parseDSL

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 Handles the "magic" inheritance of values and conventions etc.


processEventsDefinition

private boolean processEventsDefinition(EventMessage message, java.util.Map params)


registerEvents

void registerEvents(groovy.lang.Closure dsl)


registerListeners

void registerListeners(java.util.Collection serviceClasses)


reloadListener

void reloadListener(java.lang.Class serviceClass)


reloadListeners

void reloadListeners()


setGrailsApplication

void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)


waitFor

java.lang.Object[] waitFor(long l, java.util.concurrent.TimeUnit timeUnit, EventReply... replies)


waitFor

java.lang.Object[] waitFor(EventReply... replies)


 

Groovy Documentation