|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.rap.rwt.remote.AbstractOperationHandler
public abstract class AbstractOperationHandler
This class provides an empty implementation of the OperationHandler
interface, to
minimize the effort required to implement this interface.
Subclasses only need to override those methods that are needed to handle the expected operations
for the corresponding remote type. Methods that are not overridden will throw an
UnsupportedOperationException
.
It is recommended to extend this base class rather than to implement the OperationHandler interface itself.
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.
Constructor Summary | |
---|---|
AbstractOperationHandler()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractOperationHandler()
Method Detail |
---|
public void handleSet(java.util.Map<java.lang.String,java.lang.Object> properties)
OperationHandler
handleSet
in interface OperationHandler
properties
- a map with the propertiespublic void handleCall(java.lang.String method, java.util.Map<java.lang.String,java.lang.Object> parameters)
OperationHandler
handleCall
in interface OperationHandler
method
- the name of the method to callparameters
- the parameters for the method call, may be empty, but never null
public void handleNotify(java.lang.String event, java.util.Map<java.lang.String,java.lang.Object> properties)
OperationHandler
handleNotify
in interface OperationHandler
event
- the name of the event that occurredproperties
- the event properties, maybe empty but never null
|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.