org.jboss.errai.bus.client.api.builder
Class DefaultRemoteCallBuilder
java.lang.Object
org.jboss.errai.bus.client.api.builder.DefaultRemoteCallBuilder
public class DefaultRemoteCallBuilder
- extends Object
Facilitates the building of a remote call. Ensures that the remote call is constructed properly.
Part of the fluent API centered around MessageBuilder
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRemoteCallBuilder
public DefaultRemoteCallBuilder(Message message)
call
public <T,R> T call(RemoteCallback<R> callback,
Class<T> remoteService)
call
public <T,R> T call(RemoteCallback<R> callback,
BusErrorCallback errorCallback,
Class<T> remoteService)
call
public RemoteCallEndpointDef call(String serviceName)
- Only intended for use by generated code. Use
call(RemoteCallback, Class)
or
call(RemoteCallback, BusErrorCallback, Class)
from handwritten code.
Creates, implements and returns an instance of RemoteCallEndpointDef and all applicable arguments, which
should be instantiated after this call to serviceName. The endpoint allows a function from a service to be
called directly, rather than waiting for a response to a message.
- Parameters:
serviceName
- the service to call, and create a remote call endpoint for
- Returns:
- the remote call endpoint.
setProxyFactory
public static void setProxyFactory(ProxyFactory provider)
- Sets the proxy provider factory that is used by MessageBuilder and friends for creating remote proxies. Unless you
are creating an Errai extension that provides an alternative remoting mechanism, there is never a need to call this
method.
- Parameters:
provider
- The ProxyProvider that provides RPC proxies to message builders. Not null.
destroyProxyFactory
public static void destroyProxyFactory()
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.