public class DefaultEventsPublisher extends Object implements EventsPublisher, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.springframework.core.task.AsyncTaskExecutor> |
taskExecutors |
Constructor and Description |
---|
DefaultEventsPublisher() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
EventReply |
event(EventMessage event) |
EventReply |
eventAsync(EventMessage event,
Map<String,Object> params) |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setCatchFlushExceptions(boolean catchFlushExceptions) |
void |
setGrailsEventsRegistry(DefaultEventsRegistry grailsEventsRegistry) |
void |
setPersistenceInterceptor(org.codehaus.groovy.grails.support.PersistenceContextInterceptor persistenceInterceptor) |
@Autowired protected Map<String,org.springframework.core.task.AsyncTaskExecutor> taskExecutors
public DefaultEventsPublisher()
public void setCatchFlushExceptions(boolean catchFlushExceptions)
public void setPersistenceInterceptor(org.codehaus.groovy.grails.support.PersistenceContextInterceptor persistenceInterceptor)
public void setGrailsEventsRegistry(DefaultEventsRegistry grailsEventsRegistry)
public EventReply event(EventMessage event)
event
in interface EventsPublisher
public EventReply eventAsync(EventMessage event, Map<String,Object> params)
eventAsync
in interface EventsPublisher
public void afterPropertiesSet() throws org.springframework.beans.BeansException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
org.springframework.beans.BeansException
public void setApplicationContext(org.springframework.context.ApplicationContext context)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware