@Singleton @Named(value="net.sf.mmm.service.api.client.RemoteInvocationServiceCaller") public class RemoteInvocationServiceCallerImplSpring extends AbstractRemoteInvocationServiceCaller
RemoteInvocationServiceCaller using
an injected client-stub (provided by
spring-remoting) and java dynamic proxies.AbstractRemoteInvocationServiceCaller.RemoteInvocationServiceQueueImpl, AbstractRemoteInvocationServiceCaller.ServiceCallData<RESULT>AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue, AbstractRemoteInvocationCaller.RequestBuilder, AbstractRemoteInvocationCaller.TransactionalCallBuilder| Modifier and Type | Field and Description |
|---|---|
private GenericRemoteInvocationRpcService |
serviceClient |
CDI_NAME| Constructor and Description |
|---|
RemoteInvocationServiceCallerImplSpring()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected GenericRemoteInvocationRpcService |
getServiceClient() |
protected <SERVICE extends RemoteInvocationService> |
getServiceClient(Class<SERVICE> serviceInterface) |
protected void |
performRequest(GenericRemoteInvocationRpcRequest request,
AbstractRemoteInvocationCaller.RequestBuilder builder)
Actually performs the given
request by sending it to the server and handling the response
asynchronously. |
void |
setServiceClient(GenericRemoteInvocationRpcService serviceClient) |
addCall, createQueue, createRemoteInvocationTransactionalCalls, createRequest, getServiceClient, getServiceClientcreateQueue, getCurrentQueue, getDefaultFailureCallback, getTransactionMode, getXsrfToken, handleFailure, handleResponse, newQueue, newQueue, newQueue, newQueueForAutoCommit, nextRequestId, performRequest, requireCurrentQueue, setDefaultFailureCallback, setTransactionModecreateLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentQueue, newQueue, newQueue, newQueueprivate GenericRemoteInvocationRpcService serviceClient
public RemoteInvocationServiceCallerImplSpring()
protected void performRequest(GenericRemoteInvocationRpcRequest request, AbstractRemoteInvocationCaller.RequestBuilder builder)
request by sending it to the server and handling the response
asynchronously.performRequest in class AbstractRemoteInvocationCaller<RemoteInvocationServiceQueue,GenericRemoteInvocationRpcCall,GenericRemoteInvocationRpcTransactionalCalls,GenericRemoteInvocationRpcRequest>request - is the GenericRemoteInvocationRequest to perform.builder - is the AbstractRemoteInvocationCaller.RequestBuilder that created the request and is to be used for handling the
results (dispatching to the asynchronous callback functions).protected <SERVICE extends RemoteInvocationService> SERVICE getServiceClient(Class<SERVICE> serviceInterface)
getServiceClient in class AbstractRemoteInvocationServiceCallerSERVICE - is the generic type of serviceInterface.serviceInterface - is the interface of the RemoteInvocationService.RemoteInvocationServiceQueue.getServiceClient(Class, Class,
Consumer, Consumer)protected GenericRemoteInvocationRpcService getServiceClient()
@Inject public void setServiceClient(GenericRemoteInvocationRpcService serviceClient)
serviceClient - is the client-stub for GenericRemoteInvocationRpcService to inject.Copyright © 2001–2016 mmm-Team. All rights reserved.