summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/server/RpcTarget.java
blob: b280f5c6b596886cd8e0c488210e528c338f03ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
@VaadinApache2LicenseForJavaFiles@
 */

package com.vaadin.terminal.gwt.server;

import java.io.Serializable;

import com.vaadin.terminal.VariableOwner;

/**
 * Marker interface for server side classes that can receive RPC calls.
 * 
 * This plays a role similar to that of {@link VariableOwner}.
 * 
 * @since 7.0
 */
public interface RpcTarget extends Serializable {
    /**
     * Returns the RPC manager instance to use when receiving calls for an RPC
     * interface.
     * 
     * @param rpcInterface
     *            interface for which the call was made
     * @return RpcManager or null if none found for the interface
     */
    public RpcManager getRpcManager(Class<?> rpcInterface);
}