de.novanic.eventservice.client.event.command
Class ServerCallCommand<R>

java.lang.Object
  extended by de.novanic.eventservice.client.event.command.ServerCallCommand<R>
All Implemented Interfaces:
ClientCommand<R>
Direct Known Subclasses:
ActivationCommand, DeactivationCommand, DeregistrationEventFilterCommand, InitEventServiceCommand, RegistrationEventFilterCommand, RegistrationUnlistenEventCommand

public abstract class ServerCallCommand<R>
extends java.lang.Object
implements ClientCommand<R>

Command which is used at the client side to execute and handle server calls.

Author:
sstrohschein
Date: 27.03.2009
Time: 23:34:41

Constructor Summary
protected ServerCallCommand(RemoteEventConnector aRemoteEventConnector, com.google.gwt.user.client.rpc.AsyncCallback<R> aCallback)
          Creates an ServerCallCommand to execute and handle server calls.
 
Method Summary
 com.google.gwt.user.client.rpc.AsyncCallback<R> getCommandCallback()
          Returns the callback of the command.
protected  RemoteEventConnector getRemoteEventConnector()
          Returns the registered RemoteEventConnector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.novanic.eventservice.client.event.command.ClientCommand
execute
 

Constructor Detail

ServerCallCommand

protected ServerCallCommand(RemoteEventConnector aRemoteEventConnector,
                            com.google.gwt.user.client.rpc.AsyncCallback<R> aCallback)
Creates an ServerCallCommand to execute and handle server calls.

Parameters:
aRemoteEventConnector - RemoteEventConnector
aCallback - callback of the command
Method Detail

getRemoteEventConnector

protected RemoteEventConnector getRemoteEventConnector()
Returns the registered RemoteEventConnector.

Returns:
RemoteEventConnector

getCommandCallback

public com.google.gwt.user.client.rpc.AsyncCallback<R> getCommandCallback()
Returns the callback of the command. That can be used to get the callback when the command executes a server call.

Specified by:
getCommandCallback in interface ClientCommand<R>
Returns:
callback of the command