public class EventBusHook extends Object implements ComponentHook
This hook publishes events to the event bus. Messages are published using the string format "vertigo.hooks.%s" where the string argument is the full component address. If the method argument is a component, the component context will be provided. If the method argument is a string ID, the ID will be provided.
| Constructor and Description |
|---|
EventBusHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleReceive(Object message)
Called when a message has been received on the input.
|
void |
handleSend(Object message)
Called when a message has been sent on the output.
|
void |
handleStart(Component component)
Called when the component has started.
|
void |
handleStop(Component subject)
Called when the component has stopped.
|
public void handleStart(Component component)
ComponentHookhandleStart in interface ComponentHookcomponent - The component that was started.public void handleSend(Object message)
OutputHookhandleSend in interface OutputHookmessage - The message that was sent.public void handleReceive(Object message)
InputHookhandleReceive in interface InputHookmessage - The message that was received.public void handleStop(Component subject)
ComponentHookhandleStop in interface ComponentHooksubject - The component that was stopped.Copyright © 2013-2014. All Rights Reserved.