Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » remoting » support » [javadoc | source]
org.springframework.remoting.support
abstract public class: RemoteInvocationBasedExporter [javadoc | source]
java.lang.Object
   org.springframework.remoting.support.RemotingSupport
      org.springframework.remoting.support.RemoteExporter
         org.springframework.remoting.support.RemoteInvocationBasedExporter

All Implemented Interfaces:
    BeanClassLoaderAware

Direct Known Subclasses:
    SimpleHttpInvokerServiceExporter, JndiRmiServiceExporter, RmiServiceExporter, RmiBasedExporter, RemoteInvocationSerializingExporter, JmsInvokerServiceExporter, HttpInvokerServiceExporter

Abstract base class for remote service exporters that are based on deserialization of RemoteInvocation objects.

Provides a "remoteInvocationExecutor" property, with a DefaultRemoteInvocationExecutor as default strategy.

Fields inherited from org.springframework.remoting.support.RemotingSupport:
logger
Method from org.springframework.remoting.support.RemoteInvocationBasedExporter Summary:
getRemoteInvocationExecutor,   invoke,   invokeAndCreateResult,   setRemoteInvocationExecutor
Methods from org.springframework.remoting.support.RemoteExporter:
checkService,   checkServiceInterface,   getExporterName,   getProxyForService,   getService,   getServiceInterface,   setInterceptors,   setRegisterTraceInterceptor,   setService,   setServiceInterface
Methods from org.springframework.remoting.support.RemotingSupport:
getBeanClassLoader,   overrideThreadContextClassLoader,   resetThreadContextClassLoader,   setBeanClassLoader
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.remoting.support.RemoteInvocationBasedExporter Detail:
 public RemoteInvocationExecutor getRemoteInvocationExecutor() 
    Return the RemoteInvocationExecutor used by this exporter.
 protected Object invoke(RemoteInvocation invocation,
    Object targetObject) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException 
    Apply the given remote invocation to the given target object. The default implementation delegates to the RemoteInvocationExecutor.

    Can be overridden in subclasses for custom invocation behavior, possibly for applying additional invocation parameters from a custom RemoteInvocation subclass. Note that it is preferable to use a custom RemoteInvocationExecutor which is a reusable strategy.

 protected RemoteInvocationResult invokeAndCreateResult(RemoteInvocation invocation,
    Object targetObject) 
    Apply the given remote invocation to the given target object, wrapping the invocation result in a serializable RemoteInvocationResult object. The default implementation creates a plain RemoteInvocationResult.

    Can be overridden in subclasses for custom invocation behavior, for example to return additional context information. Note that this is not covered by the RemoteInvocationExecutor strategy!

 public  void setRemoteInvocationExecutor(RemoteInvocationExecutor remoteInvocationExecutor) 
    Set the RemoteInvocationExecutor to use for this exporter. Default is a DefaultRemoteInvocationExecutor.

    A custom invocation executor can extract further context information from the invocation, for example user credentials.