Eclipse Remote Application Platform

Interface OperationHandler

All Known Implementing Classes:

public interface OperationHandler

Classes that implement this interface are used to handle operations from a remote object. Implementations must apply the operations to the corresponding target object.

It is recommended to extend AbstractOperationHandler rather than to implement this interface.

Note: The classes and interfaces in the package org.eclipse.rap.rwt.remote are still considered provisional. They are expected to evolve over the next releases, which may lead to slight changes. We make the package available to enable the development of custom components with the new API.

See Also:
AbstractOperationHandler, RemoteObject

Method Summary
 void handleCall(java.lang.String method, java.util.Map<java.lang.String,java.lang.Object> parameters)
          Handles a call operation from the remote object.
 void handleNotify(java.lang.String event, java.util.Map<java.lang.String,java.lang.Object> properties)
          Handles a notify operation from the remote object.
 void handleSet(java.util.Map<java.lang.String,java.lang.Object> properties)
          Handles a set operation from the remote object.

Method Detail


void handleSet(java.util.Map<java.lang.String,java.lang.Object> properties)
Handles a set operation from the remote object. With a set operation, the remote object informs the receiver that one or more properties have changed their values. The implementation of this method must apply the new property values to the target object in a suitable order.

properties - a map with the properties


void handleCall(java.lang.String method,
                java.util.Map<java.lang.String,java.lang.Object> parameters)
Handles a call operation from the remote object. With a call operation, the remote object instructs the receiver to call a method on the target object. The method call may be parameterized with the given properties.

method - the name of the method to call
parameters - the parameters for the method call, may be empty, but never null


void handleNotify(java.lang.String event,
                  java.util.Map<java.lang.String,java.lang.Object> properties)
Handles a notify operation from the remote object. With a notify operation, the remote object notifies the receiver that an event has occurred. An implementation of this method must notify the corresponding listeners attached to the target object.

event - the name of the event that occurred
properties - the event properties, maybe empty but never null

Eclipse Remote Application Platform

Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.