org.softamis.cluster4spring.rmi
Class RmiProxyFactoryBean<SI extends ServiceMoniker>
java.lang.Object
org.springframework.remoting.support.RemoteAccessor
org.softamis.cluster4spring.support.RemoteInvocationBasedAccessor
org.softamis.cluster4spring.support.RemoteClientInterceptor<RmiEndpoint<SI>,SI>
org.softamis.cluster4spring.rmi.support.RmiClientInterceptor<SI>
org.softamis.cluster4spring.rmi.AbstractRmiProxyFactoryBean<SI>
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
Fields inherited from class org.springframework.remoting.support.RemoteAccessor |
logger |
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.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.springframework.remoting.support.RemoteAccessor |
getServiceInterface, setServiceInterface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RmiProxyFactoryBean
public RmiProxyFactoryBean()
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