Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.io
Class CommandBindingsCallback

java.lang.Object
  extended by org.jboss.errai.bus.server.io.CommandBindingsCallback
All Implemented Interfaces:
MessageCallback

public class CommandBindingsCallback
extends Object


Constructor Summary
CommandBindingsCallback(Map<String,Method> commandBindings, Object delegate)
           
 
Method Summary
 void callback(Message message)
          Called by the Message Bus every time it processes a message with the subject this callback is registered for.
protected  void maybeUnwrapAndThrowError(Throwable throwable)
           
protected  void verifyMethodSignature(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandBindingsCallback

public CommandBindingsCallback(Map<String,Method> commandBindings,
                               Object delegate)
Method Detail

callback

public void callback(Message message)
Description copied from interface: MessageCallback
Called by the Message Bus every time it processes a message with the subject this callback is registered for.

Parameters:
message - The message on the bus. Avoid making changes to this object, because it will continue to be reused by the framework and the same Message instance will be passed to other callbacks.

maybeUnwrapAndThrowError

protected void maybeUnwrapAndThrowError(Throwable throwable)
                                 throws RuntimeException
Throws:
RuntimeException

verifyMethodSignature

protected void verifyMethodSignature(Method method)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.