com.neeve.sma
Class MessageWaypointListenerRegistry

java.lang.Object
  extended by com.neeve.sma.MessageWaypointListenerRegistry

public final class MessageWaypointListenerRegistry
extends Object

The message waypoint listener registry

The message waypoint listener registry, a singleton class, stores references to message waypoint listeners. It serves as the conduit through which waypoint callouts are dispatched to user listeners


Constructor Summary
MessageWaypointListenerRegistry()
           
 
Method Summary
static void dispatch(MessageWaypointListener.Waypoint waypoint, MessageWaypointListener.MessagingDirection direction, Object message)
          Dispatch a waypoint callout to the registered listener
static void registerMessageWaypointListener(MessageWaypointListener listener)
          Register a user waypoint listener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageWaypointListenerRegistry

public MessageWaypointListenerRegistry()
Method Detail

registerMessageWaypointListener

public static final void registerMessageWaypointListener(MessageWaypointListener listener)
Register a user waypoint listener

Parameters:
listener - The message waypoint listener to register
Threading:
This method is safe for concurrent access by multiple threads.

dispatch

public static final void dispatch(MessageWaypointListener.Waypoint waypoint,
                                  MessageWaypointListener.MessagingDirection direction,
                                  Object message)
Dispatch a waypoint callout to the registered listener



Copyright © 2015 Neeve Research, LLC. All Rights Reserved.