com.googlecode.xremoting.spring
Class XRemotingExporter

java.lang.Object
  extended by org.springframework.remoting.support.RemoteExporter
      extended by com.googlecode.xremoting.spring.XRemotingExporter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
XRemotingServiceExporter

public class XRemotingExporter
extends org.springframework.remoting.support.RemoteExporter
implements org.springframework.beans.factory.InitializingBean

Exposes XRemoting-based service using some protocol.

Author:
Roman Puchkovskiy

Field Summary
protected  Invoker invoker
           
protected  ProxyInvokingHelper invokingHelper
           
protected  InvocationRestriction restriction
           
protected  Serializer serializer
           
protected  Class<? extends Serializer> serializerClass
           
protected  ClassLoader serializerClassLoader
           
protected  String serializerClassName
           
 
Fields inherited from class org.springframework.remoting.support.RemoteExporter
logger
 
Constructor Summary
XRemotingExporter()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  Invoker createDefaultInvoker()
           
protected  Serializer createDefaultSerializer()
           
protected  ProxyInvokingHelper createInvokingHelper()
           
protected  InvocationRestriction createRestriction()
           
protected  Serializer createSerializer()
           
protected  ClassLoader getDefaultSerializerClassLoader()
           
protected  void invoke(InputStream is, OutputStream os)
           
 void setInvoker(Invoker invoker)
           
 void setSerializer(Serializer serializer)
           
 void setSerializerClass(Class<? extends Serializer> serializerClass)
           
 void setSerializerClassLoader(ClassLoader serializerClassLoader)
           
 void setSerializerClassName(String serializerClassName)
           
 
Methods inherited from class org.springframework.remoting.support.RemoteExporter
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, isRegisterTraceInterceptor, setRegisterTraceInterceptor, setService, setServiceInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serializer

protected Serializer serializer

serializerClass

protected Class<? extends Serializer> serializerClass

serializerClassName

protected String serializerClassName

serializerClassLoader

protected ClassLoader serializerClassLoader

invoker

protected Invoker invoker

invokingHelper

protected ProxyInvokingHelper invokingHelper

restriction

protected InvocationRestriction restriction
Constructor Detail

XRemotingExporter

public XRemotingExporter()
Method Detail

setSerializer

public void setSerializer(Serializer serializer)

setSerializerClass

public void setSerializerClass(Class<? extends Serializer> serializerClass)

setSerializerClassName

public void setSerializerClassName(String serializerClassName)

setSerializerClassLoader

public void setSerializerClassLoader(ClassLoader serializerClassLoader)

setInvoker

public void setInvoker(Invoker invoker)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

createSerializer

protected Serializer createSerializer()
                               throws InstantiationException,
                                      IllegalAccessException,
                                      ClassNotFoundException
Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException

createDefaultSerializer

protected Serializer createDefaultSerializer()

getDefaultSerializerClassLoader

protected ClassLoader getDefaultSerializerClassLoader()

createDefaultInvoker

protected Invoker createDefaultInvoker()

createInvokingHelper

protected ProxyInvokingHelper createInvokingHelper()

createRestriction

protected InvocationRestriction createRestriction()

invoke

protected void invoke(InputStream is,
                      OutputStream os)
               throws IOException
Throws:
IOException


Copyright © 2010. All Rights Reserved.