org.softamis.cluster4spring.rmi
Class RmiUrlListProxyFactoryBean<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.support.AbstractRmiShortFormProxyFactoryBean<SI>
org.softamis.cluster4spring.rmi.RmiUrlListProxyFactoryBean<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 RmiUrlListProxyFactoryBean<SI extends ServiceMoniker>
- extends AbstractRmiShortFormProxyFactoryBean<SI>
Implementation of RmiProxyFactoryBean
that allows more compact form
of describing bean properteis in configuration xml. This implementation does not
accept endpoint provider, but creates it internally. Due to this, class has several
additional properties that are used to setup EndpointProvider
Current implementation is used to create UrlListEndpointProvider
internally.
While this factory may be considered less flexible comparing to usual
combination (RmiProxyFactoryBean/UrlListEndpointProvider), it can be defined in
configuration files in more compact form.
- Author:
- Andrew Sazonov
- See Also:
UrlListEndpointProvider
Fields inherited from class org.springframework.remoting.support.RemoteAccessor |
logger |
Methods inherited from class org.softamis.cluster4spring.rmi.AbstractRmiProxyFactoryBean |
addSpecifiedAdvices, 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 |
fServiceURLs
protected java.util.List<SI extends ServiceMoniker> fServiceURLs
fEndpointSelectionPolicy
protected EndpointSelectionPolicy<RmiEndpoint<SI extends ServiceMoniker>,SI extends ServiceMoniker> fEndpointSelectionPolicy
RmiUrlListProxyFactoryBean
public RmiUrlListProxyFactoryBean()
createEndpointProvider
protected UrlListEndpointProvider<RmiEndpoint<SI>,SI> createEndpointProvider()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Description copied from class:
RemoteClientInterceptor
- Invoked by Spring as part of bean lifecycle and is used to check
whether
EndpointProvider
is specified and perform other
preparations
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in class AbstractRmiProxyFactoryBean<SI extends ServiceMoniker>
- Throws:
java.lang.Exception
setServiceURLs
public void setServiceURLs(java.util.List<SI> aServiceInfos)
setEndpointSelectionPolicy
public void setEndpointSelectionPolicy(EndpointSelectionPolicy<RmiEndpoint<SI>,SI> aServiceSelectionPolicy)