JavaScript is disabled on your browser.
Overview
Package
Class
Deprecated
Index
Help
Frames
No Frames
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
A
AbstractEventBus
- Class in
org.grails.events.bus
Abstract event bus impl
AbstractEventBus.1
- Class in
org.grails.events.bus
AbstractEventBus.1()
- Constructor in
AbstractEventBus.1
AbstractEventBus.EventTriggerTransactionSynchronization
- Class in
org.grails.events.bus
AbstractEventBus.NotificationTrigger
- Class in
org.grails.events.bus
AbstractEventBus()
- Constructor in
AbstractEventBus
AbstractSubscription
- Class in
org.grails.events.registry
Abstract subscription
AbstractSubscription(java.lang.CharSequence, Map<CharSequence, Collection<Subscription>>)
- Constructor in
AbstractSubscription
actor
- Property in
ActorEventBus
ActorEventBus
- Class in
org.grails.events.gpars
A event bus that uses GPars actors
ActorEventBus()
- Constructor in
ActorEventBus
afterCommit()
- Method in
AbstractEventBus.EventTriggerTransactionSynchronization
afterCompletion(int)
- Method in
AbstractEventBus.EventTriggerTransactionSynchronization
afterPropertiesSet()
- Method in
EventBusFactoryBean
afterPropertiesSet()
- Method in
GormDispatcherRegistrar
AnnotatedSubscriber
- Trait in
org.grails.events.transform
Registers subscribed methods.
applicationContext
- Property in
EventBusFactoryBean
applicationContext
- Property in
SpringEventBus
APPLIED_MARKER
- Field in
PublisherTransform
APPLIED_MARKER
- Field in
SubscriberTransform
B
beforeCommit(boolean)
- Method in
AbstractEventBus.EventTriggerTransactionSynchronization
build()
- Method in
EventBusBuilder
Returns:
Tries to auto discover and build the event bus
buildClosureSubscription(java.lang.CharSequence, groovy.lang.Closure)
- Method in
AbstractEventBus
buildClosureSubscription(java.lang.CharSequence, groovy.lang.Closure)
- Method in
RxEventBus
buildDelegatingMethodCall(org.codehaus.groovy.control.SourceUnit, org.codehaus.groovy.ast.AnnotationNode, org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.MethodNode, org.codehaus.groovy.ast.expr.MethodCallExpression, org.codehaus.groovy.ast.stmt.BlockStatement)
- Method in
PublisherTransform
buildNotificationCallable(grails.events.Event, Collection<Subscription>, groovy.lang.Closure)
- Method in
AbstractEventBus
Build a new trigger to set off notifications
buildNotificationCallable(grails.events.Event, Collection<Subscription>, groovy.lang.Closure)
- Method in
ActorEventBus
buildNotificationCallable(grails.events.Event, Collection<Subscription>, groovy.lang.Closure)
- Method in
ExecutorEventBus
buildNotificationCallable(grails.events.Event, Collection<Subscription>, groovy.lang.Closure)
- Method in
RxEventBus
buildNotificationCallable(grails.events.Event, Collection<Subscription>, groovy.lang.Closure)
- Method in
SpringEventBus
buildNotificationCallable(grails.events.Event, Collection<Subscription>, groovy.lang.Closure)
- Method in
SynchronousEventBus
buildNotificationTrigger(grails.events.Event, Collection<Subscription>, groovy.lang.Closure)
- Method in
AbstractEventBus
Build a new trigger to set off notifications
buildSubscriberSubscription(java.lang.CharSequence, grails.events.subscriber.Subscriber)
- Method in
AbstractEventBus
buildSubscriberSubscription(java.lang.CharSequence, grails.events.subscriber.Subscriber)
- Method in
RxEventBus
buildTrigger(grails.events.Event, groovy.lang.Closure)
- Method in
ClosureSubscription
buildTrigger(grails.events.Event, groovy.lang.Closure)
- Method in
EventSubscriberSubscription
buildTrigger(grails.events.Event, groovy.lang.Closure)
- Method in
Subscription
Returns:
Builds a trigger
C
call(java.lang.Object)
- Method in
MethodSubscriber
call(T)
- Method in
Subscriber
Calls the event subscriber
callSpread(groovy.lang.Closure, java.lang.Object)
- Method in
ClosureEventTrigger
cancel()
- Method in
AbstractSubscription
cancel()
- Method in
Subscription
Returns:
Cancel the registration
close()
- Method in
ActorEventBus
ClosureEventTrigger
- Class in
org.grails.events
Triggers an event
ClosureEventTrigger(Event<T>, groovy.lang.Closure, groovy.lang.Closure)
- Constructor in
ClosureEventTrigger
ClosureSubscription
- Class in
org.grails.events.registry
A subscription via a Closure
ClosureSubscription(java.lang.CharSequence, Map<CharSequence, Collection<Subscription>>, groovy.lang.Closure)
- Constructor in
ClosureSubscription
conversionService
- Property in
MethodSubscriber
createDefaultEventBus()
- Method in
EventBusBuilder
createDefaultEventBus()
- Method in
EventBusFactoryBean
D
data
- Property in
Event
The data of the event
datastores
- Property in
GormDispatcherRegistrar
dispatch(org.grails.datastore.mapping.engine.event.AbstractPersistenceEvent)
- Method in
GormAnnotatedListener
Dispatch the event to this listener
E
enhanceClassNode(org.codehaus.groovy.control.SourceUnit, org.codehaus.groovy.ast.AnnotationNode, org.codehaus.groovy.ast.ClassNode)
- Method in
PublisherTransform
error()
- Method in
Events
Returns:
The id of the event to notify in the case of an error
error()
- Method in
Publisher
Returns:
The id of the event to notify in the case of an error
Event
- Class in
grails.events
Wraps an event
event
- Property in
AbstractEventBus.NotificationTrigger
event
- Property in
ClosureEventTrigger
Event(java.lang.String, Map<String, Object>, T)
- Constructor in
Event
event
- Property in
EventSubscriberTrigger
event
- Property in
EventWithReply
EventBus
- Interface in
grails.events.bus
An EventBus is both an EventEmitter and a Subjects
eventBus
- Property in
EventBusFactoryBean
eventBus
- Field in
GormDispatcherRegistrar
eventBus
- Field in
GormEventDispatcher
EventBusAware
- Trait in
grails.events.bus
Trait for classes aware of the event bus
EventBusBuilder
- Class in
grails.events.bus
Tries to build the default event bus
EventBusBuilder()
- Constructor in
EventBusBuilder
EventBusFactoryBean
- Class in
org.grails.events.bus.spring
Factory bean for usage within Spring
EventBusFactoryBean()
- Constructor in
EventBusFactoryBean
EventEmitter
- Interface in
grails.events.emitter
An emitter sends events
eventIdForMethodName(java.lang.String)
- Method in
EventIdUtils
EventIdUtils
- Class in
org.grails.events
Authors:
Graeme Rocher
EventIdUtils()
- Constructor in
EventIdUtils
eventKey
- Property in
AbstractSubscription
EventPublisher
- Trait in
grails.events
A trait that can be implemented to make a class an event publisher
Events
- Annotation Type in
grails.events.annotation
Allows the definition of common event settings at the class level
EventSubscriber
- Interface in
grails.events.subscriber
An interface for subscribers that accept the Event as an argument
EventSubscriberSubscription
- Class in
org.grails.events.registry
An event subscription for an Subscriber
EventSubscriberSubscription(java.lang.CharSequence, Map<CharSequence, Collection<Subscription>>, grails.events.subscriber.Subscriber)
- Constructor in
EventSubscriberSubscription
EventSubscriberTrigger
- Class in
org.grails.events
Simple trigger for an Subscriber
EventSubscriberTrigger(grails.events.Event, grails.events.subscriber.Subscriber)
- Constructor in
EventSubscriberTrigger
EventTrigger
- Interface in
grails.events.trigger
Encapsulates the execution of an event
EventTriggerTransactionSynchronization(org.grails.events.bus.AbstractEventBus.NotificationTrigger, org.springframework.transaction.event.TransactionPhase)
- Constructor in
AbstractEventBus.EventTriggerTransactionSynchronization
EventWithReply
- Class in
org.grails.events.rxjava3
An event with a reply
EventWithReply(grails.events.Event, groovy.lang.Closure)
- Constructor in
EventWithReply
executor
- Property in
ExecutorEventBus
ExecutorEventBus
- Class in
org.grails.events.bus
An event bus that uses an java.util.concurrent.Executor
ExecutorEventBus(java.util.concurrent.Executor)
- Constructor in
ExecutorEventBus
F
from(java.lang.String, Map<String, Object>, T)
- Method in
Event
Wrap the given object with an
Event
.
G
getAnnotationType()
- Method in
PublisherTransform
getAnnotationType()
- Method in
SubscriberTransform
getAppliedMarker()
- Method in
PublisherTransform
getAppliedMarker()
- Method in
SubscriberTransform
getEvent()
- Method in
EventTrigger
Returns:
The event being triggered
getEventBus()
- Method in
EventBusAware
Returns:
Retrieves the event bus
getObject()
- Method in
EventBusFactoryBean
getObject()
- Method in
GormDispatcherRegistrar
getObjectType()
- Method in
EventBusFactoryBean
getObjectType()
- Method in
GormDispatcherRegistrar
getOrder()
- Method in
PublisherTransform
getRenamedMethodPrefix()
- Method in
PublisherTransform
getSource()
- Method in
SpringEventBusEvent
getSubscribedEvents()
- Method in
GormAnnotatedSubscriber
getSubscribedMethods()
- Method in
AnnotatedSubscriber
getSubscriber()
- Method in
ClosureEventTrigger
getSubscriber()
- Method in
EventTrigger
Returns:
The event listener
getTraitClass()
- Method in
SubscriberTransform
GormAnnotatedListener
- Trait in
org.grails.events.gorm
Marks a class as a synchronous listener of GORM events
GormAnnotatedSubscriber
- Trait in
org.grails.events.gorm
The events subscribed to
GormDispatcherRegistrar
- Class in
org.grails.events.gorm
Handles registering of GORM event listeners for
GormAnnotatedSubscriber
instances
GormDispatcherRegistrar(grails.events.bus.EventBus)
- Constructor in
GormDispatcherRegistrar
GormEventDispatcher
- Class in
org.grails.events.gorm
Dispatches GORM events to the EventBus
GormEventDispatcher(grails.events.bus.EventBus, org.grails.datastore.mapping.core.Datastore, Set<Class<? extends AbstractPersistenceEvent>>, List<GormAnnotatedListener>)
- Constructor in
GormEventDispatcher
H
hasEventSubscribers
- Field in
GormEventDispatcher
hasListeners
- Field in
GormEventDispatcher
I
id
- Property in
Event
The id of the event
isActive()
- Method in
AbstractEventBus
isActive()
- Method in
ActorEventBus
isActive()
- Method in
EventBus
Returns:
Whether the event bus is active or has been shutdown
isCancelled()
- Method in
AbstractSubscription
isCancelled()
- Method in
Subscription
Returns:
Whether it is cancelled
isSingleton()
- Method in
EventBusFactoryBean
isSingleton()
- Method in
GormDispatcherRegistrar
isValidAnnotation(org.codehaus.groovy.ast.AnnotationNode, org.codehaus.groovy.ast.AnnotatedNode)
- Method in
SubscriberTransform
J
K
L
listenedForEvents
- Field in
GormEventDispatcher
Listener
- Annotation Type in
grails.events.annotation.gorm
A Listener is like a
Subscriber
for GORM events, but is dispatched synchronously
listener
- Property in
ClosureSubscription
listeners
- Field in
GormEventDispatcher
M
method
- Property in
MethodSubscriber
MethodEventSubscriber
- Class in
grails.events.subscriber
A method subscribers for methods that accept an event argument
MethodEventSubscriber(java.lang.Object, java.lang.reflect.Method)
- Constructor in
MethodEventSubscriber
MethodSubscriber
- Class in
grails.events.subscriber
Invokes a method to trigger an event
MethodSubscriber(java.lang.Object, java.lang.reflect.Method)
- Constructor in
MethodSubscriber
N
namespace()
- Method in
Events
Returns:
The namespace of the events
notificationTrigger
- Property in
AbstractEventBus.EventTriggerTransactionSynchronization
NotificationTrigger(grails.events.Event, Collection<Subscription>, groovy.lang.Closure)
- Constructor in
AbstractEventBus.NotificationTrigger
notify(grails.events.Event, org.springframework.transaction.event.TransactionPhase)
- Method in
AbstractEventBus
notify(grails.events.Event, org.springframework.transaction.event.TransactionPhase)
- Method in
EventEmitter
Notify of an event
notify(grails.events.Event, org.springframework.transaction.event.TransactionPhase)
- Method in
EventPublisher
See Also:
EventEmitter.notify
O
on(java.lang.CharSequence, groovy.lang.Closure)
- Method in
AbstractEventBus
on(java.lang.CharSequence, groovy.lang.Closure)
- Method in
Subjects
Listen for an event
onPersistenceEvent(org.grails.datastore.mapping.engine.event.AbstractPersistenceEvent)
- Method in
GormEventDispatcher
P
parameterLength
- Property in
MethodSubscriber
parameters
- Property in
Event
The parameters for the event
parameterTypes
- Property in
MethodSubscriber
phase()
- Method in
Events
Returns:
The transaction phase to subscribe on
phase()
- Method in
Publisher
Returns:
The transaction phase to subscribe on
POSITION
- Field in
PublisherTransform
The position of the transform.
proceed()
- Method in
ClosureEventTrigger
proceed()
- Method in
EventSubscriberTrigger
proceed()
- Method in
EventTrigger
Returns:
Proceed to trigger the event
publish(grails.events.Event, org.springframework.transaction.event.TransactionPhase)
- Method in
AbstractEventBus
publish(grails.events.Event, org.springframework.transaction.event.TransactionPhase)
- Method in
EventEmitter
Synonym for
notify(Event, org.springframework.transaction.event.TransactionPhase)
publish(grails.events.Event)
- Method in
EventPublisher
See Also:
EventEmitter.publish
Publisher
- Annotation Type in
grails.events.annotation
Transforms a method so the return value is emitted as an event
PublisherTransform
- Class in
org.grails.events.transform
A transform that transforms a method publishing the result to the given event
PublisherTransform()
- Constructor in
PublisherTransform
Q
R
registerMethods()
- Method in
AnnotatedSubscriber
reply
- Property in
AbstractEventBus.NotificationTrigger
reply
- Property in
ClosureEventTrigger
reply
- Property in
EventWithReply
replyTo
- Property in
SpringEventBusEvent
run()
- Method in
AbstractEventBus.1
RxEventBus
- Class in
org.grails.events.rxjava3
An EventBus implementation that uses RxJava
RxEventBus(rx.Scheduler)
- Constructor in
RxEventBus
S
scheduler
- Property in
RxEventBus
sendAndReceive(grails.events.Event, groovy.lang.Closure)
- Method in
AbstractEventBus
sendAndReceive(java.lang.CharSequence, java.lang.Object, groovy.lang.Closure)
- Method in
EventEmitter
Send and event and receive a reply.
sendAndReceive(java.lang.CharSequence, java.lang.Object, groovy.lang.Closure)
- Method in
EventPublisher
See Also:
EventEmitter.sendAndReceive
setTargetEventBus(grails.events.bus.EventBus)
- Method in
EventBusAware
Sets the target event bus to use
SpringEventBus
- Class in
org.grails.events.spring
An event bus that uses the Spring Event Publisher
SpringEventBus(org.springframework.context.ConfigurableApplicationContext)
- Constructor in
SpringEventBus
SpringEventBusEvent
- Class in
org.grails.events.spring
An event issues by the
SpringEventBus
SpringEventBusEvent(grails.events.Event, groovy.lang.Closure)
- Constructor in
SpringEventBusEvent
Create a new ApplicationEvent.
Subjects
- Interface in
grails.events.subscriber
An event subscriber
subjects
- Field in
RxEventBus
subscribe(java.lang.CharSequence, grails.events.subscriber.Subscriber)
- Method in
AbstractEventBus
subscribe(java.lang.CharSequence, grails.events.subscriber.Subscriber)
- Method in
Subjects
Listen for an event
subscribedEvents
- Field in
GormEventDispatcher
Subscriber
- Interface in
grails.events.subscriber
Functional interface for event listeners
subscriber
- Property in
EventSubscriberSubscription
subscriber
- Property in
EventSubscriberTrigger
subscriberClosure
- Property in
ClosureEventTrigger
subscribers
- Property in
GormDispatcherRegistrar
SubscriberTransform
- Class in
org.grails.events.transform
An AST transformation that adds the
AnnotatedSubscriber
SubscriberTransform()
- Constructor in
SubscriberTransform
Subscription
- Interface in
grails.events.subscriber
Represents a subscription to an event
subscriptions
- Field in
AbstractEventBus
subscriptions
- Property in
AbstractEventBus.NotificationTrigger
supports(org.grails.datastore.mapping.engine.event.AbstractPersistenceEvent)
- Method in
GormAnnotatedListener
Whether the listener supports the given event
supportsEventType(Class<? extends ApplicationEvent>)
- Method in
GormEventDispatcher
supportsSourceType(Class<?>)
- Method in
GormEventDispatcher
SynchronousEventBus
- Class in
org.grails.events.bus
A default synchronous event bus for testing
SynchronousEventBus()
- Constructor in
SynchronousEventBus
T
target
- Property in
MethodSubscriber
transactionPhase
- Property in
AbstractEventBus.EventTriggerTransactionSynchronization
U
unsubscribeAll(java.lang.CharSequence)
- Method in
AbstractEventBus
unsubscribeAll(java.lang.CharSequence)
- Method in
Subjects
Clear all listeners for the given event
V
value()
- Method in
Listener
Returns:
The types this listener listens for
value()
- Method in
Publisher
Returns:
The id of the event
value()
- Method in
Subscriber
Returns:
The id of the event
visit(org.codehaus.groovy.control.SourceUnit, org.codehaus.groovy.ast.AnnotationNode, org.codehaus.groovy.ast.AnnotatedNode)
- Method in
SubscriberTransform
W
X
Y
Z
_
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
Overview
Package
Class
Deprecated
Index
Help
Frames
No Frames
Groovy Documentation