org.softamis.cluster4spring.rmi
Class RmiProxyFactoryBean<SI extends ServiceMoniker>

java.lang.Object
  extended by org.springframework.remoting.support.RemoteAccessor
      extended by org.softamis.cluster4spring.support.RemoteInvocationBasedAccessor
          extended by org.softamis.cluster4spring.support.RemoteClientInterceptor<RmiEndpoint<SI>,SI>
              extended by org.softamis.cluster4spring.rmi.support.RmiClientInterceptor<SI>
                  extended by org.softamis.cluster4spring.rmi.AbstractRmiProxyFactoryBean<SI>
                      extended by org.softamis.cluster4spring.rmi.RmiProxyFactoryBean<SI>
All Implemented Interfaces:
java.util.EventListener, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationListener

public class RmiProxyFactoryBean<SI extends ServiceMoniker>
extends AbstractRmiProxyFactoryBean<SI>

Proxy factory that creates proxies for remote services exported via RMI. This form of describing proxy factory for rmi assumes that all corresponding reference to related objects requried for property work of factory will be specified explicitely in Spring XML mapping.

While such approach of defining factory is very flexible and allows tune most of acpects of factory functioning very precisely, resulting XML definitition may be considered slightly verbose. To overcome this, there are several pre-configure variants of factory which offers predefined endpoint providers (for single url, url list and discovering mode of connecting to the server) as well as the set of some additional parameters. The classes of such factories are extended from AbstractRmiShortFormProxyFactoryBean.

*

See Also:
RmiUrlListProxyFactoryBean, RmiSingleUrlProxyFactoryBean, RmiDiscoveringProxyFactoryBean

Field Summary
 
Fields inherited from class org.softamis.cluster4spring.rmi.AbstractRmiProxyFactoryBean
fBeanFactory, fInterceptorNames, fRegisterTraceInterceptor, fRemoteInvocationTraceInterceptor, fServiceProxy
 
Fields inherited from class org.softamis.cluster4spring.rmi.support.RmiClientInterceptor
PROTOCOL_RMI
 
Fields inherited from class org.softamis.cluster4spring.support.RemoteClientInterceptor
fBeanName, fEndpointFactory, fEndpointProvider, fRefreshEndpointsOnConnectFailure, fRefreshEndpointsOnStartup, fSwitchEndpointOnFailure
 
Fields inherited from class org.softamis.cluster4spring.support.RemoteInvocationBasedAccessor
fRemoteInvocationFactory
 
Fields inherited from class org.springframework.remoting.support.RemoteAccessor
logger
 
Constructor Summary
RmiProxyFactoryBean()
           
 
Method Summary
 void setEndpointProvider(EndpointProvider<RmiEndpoint<SI>,SI> aEndpointProvider)
          Sets provider for endpoints used for remote services invocation
 
Methods inherited from class org.softamis.cluster4spring.rmi.AbstractRmiProxyFactoryBean
addSpecifiedAdvices, afterPropertiesSet, createDefaultRemoteInvocationTraceInterceptor, getEndpointFactory, getInterceptorNames, getObject, getObjectType, getProxyName, getRemoteInvocationTraceInterceptor, isRegisterTraceInterceptor, isSingleton, obtainRemoteInvocationTraceInterceptor, setBeanFactory, setEndpointFactory, setInterceptorNames, setRegisterTraceInterceptor, setRemoteInvocationTraceInterceptor
 
Methods inherited from class org.softamis.cluster4spring.rmi.support.RmiClientInterceptor
convertRmiAccessException, createDefaultEndpointFactory, doInvoke, getProtocol, isConnectFailure, isConnectFailureOnRemoteException, throwRmiAccessException
 
Methods inherited from class org.softamis.cluster4spring.support.RemoteClientInterceptor
doInvoke, doPreprocessApplicationEvent, getBeanName, handleRemoteConnectFailure, invoke, isRefreshEndpointsOnConnectFailure, isRefreshEndpointsOnStartup, isSwitchEndpointOnFailure, markServiceInvalid, obtainEndpointToExecute, onApplicationEvent, onContextClosed, onContextRefreshed, prepare, refreshAndRetry, refreshEndpointProvider, retry, setBeanName, setRefreshEndpointsOnConnectFailure, setRefreshEndpointsOnStartup, setSwitchEndpointOnFailure, throwRemoteLookupFailureException, throwServiceException
 
Methods inherited from class org.softamis.cluster4spring.support.RemoteInvocationBasedAccessor
getRemoteInvocationFactory, setRemoteInvocationFactory
 
Methods inherited from class org.springframework.remoting.support.RemoteAccessor
getServiceInterface, setServiceInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiProxyFactoryBean

public RmiProxyFactoryBean()
Method Detail

setEndpointProvider

public void setEndpointProvider(EndpointProvider<RmiEndpoint<SI>,SI> aEndpointProvider)
Description copied from class: RemoteClientInterceptor
Sets provider for endpoints used for remote services invocation

Overrides:
setEndpointProvider in class RemoteClientInterceptor<RmiEndpoint<SI extends ServiceMoniker>,SI extends ServiceMoniker>
Parameters:
aEndpointProvider - provider for endpoints