public final class EmittingBroadcaster extends AbstractBroadcaster
Broadcaster
, this emits the broadcasted events to registered Plugin
methods.Emitter
next
Constructor and Description |
---|
EmittingBroadcaster() |
Modifier and Type | Method and Description |
---|---|
void |
broadcast(Broadcastable broadcastable)
Broadcasts the given event (syntax unit).
|
void |
errorManager(ErrorManager em)
Specifies the
ErrorManager that should be given to Validate subscription methods. |
void |
grammar(Grammar grammar)
Specifies the
Grammar to pass along to Refine subscription methods. |
void |
phase(SubscriptionPhase phase)
|
void |
register(Object subscriber)
|
void |
root(Broadcaster broadcaster)
Specifies the top-level
Broadcaster to pass along to Refine subscription methods. |
chain, chainBroadcast, cut, relay
public void grammar(Grammar grammar)
Grammar
to pass along to Refine
subscription methods.grammar
- The Grammar
instance.public void root(Broadcaster broadcaster)
Broadcaster
to pass along to Refine
subscription methods.broadcaster
- THe Broadcaster
instance.public void errorManager(ErrorManager em)
ErrorManager
that should be given to Validate
subscription methods.em
- The ErrorManager
instance.public void register(Object subscriber)
subscriber
- The Plugin
class.public void phase(SubscriptionPhase phase)
phase
- The new SubscriptionPhase
.public void broadcast(Broadcastable broadcastable)
Broadcaster
broadcastable
- The Broadcastable
syntax unit.Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.