|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>
public abstract class AbstractRmiProxyFactoryBean<SI extends ServiceMoniker>
Abstract class used to implement RMI based proxy factory beans
Field Summary | |
---|---|
protected org.springframework.beans.factory.BeanFactory |
fBeanFactory
Bean factory where bean is included |
protected java.lang.String[] |
fInterceptorNames
List of interceptor names that should be registered |
protected boolean |
fRegisterTraceInterceptor
Indicates whether trace interceptor should be registered |
protected org.aopalliance.intercept.MethodInterceptor |
fRemoteInvocationTraceInterceptor
Interceptor that should be registered to trace remote calls |
protected java.lang.Object |
fServiceProxy
Proxy object |
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 | |
---|---|
AbstractRmiProxyFactoryBean()
|
Method Summary | |
---|---|
protected void |
addSpecifiedAdvices(org.springframework.aop.framework.ProxyFactory aProxyFactory)
Discovers advices specified in bean definition and adds them to proxy factory used to obtain proxy. |
void |
afterPropertiesSet()
Invoked by Spring as part of bean lifecycle and is used to check whether EndpointProvider is specified and perform other
preparations |
protected org.aopalliance.intercept.MethodInterceptor |
createDefaultRemoteInvocationTraceInterceptor()
Creates default remote invocation trace method interceptor |
EndpointFactory<RmiEndpoint<SI>,SI> |
getEndpointFactory()
Returns factory used to create endpoints |
java.lang.String[] |
getInterceptorNames()
Returns list of interceptor names that should be registered in proxy factory. |
java.lang.Object |
getObject()
|
java.lang.Class |
getObjectType()
|
protected java.lang.String |
getProxyName()
Returns name of the proxy |
org.aopalliance.intercept.MethodInterceptor |
getRemoteInvocationTraceInterceptor()
Returns interceptor that should be registered to trace remote calls |
boolean |
isRegisterTraceInterceptor()
Returns indicates whether trace interceptor should be registered. |
boolean |
isSingleton()
Is the bean managed by this factory a singleton or a prototype? That is, will getObject() always return the same object? |
protected org.aopalliance.intercept.MethodInterceptor |
obtainRemoteInvocationTraceInterceptor()
Utility method that returns interceptor used to trace remote invocation. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory aBeanFactory)
Callback that supplies the owning factory to a bean instance. |
void |
setEndpointFactory(EndpointFactory<RmiEndpoint<SI>,SI> aEndpointFactory)
Sets factory used to create endpoints. |
void |
setInterceptorNames(java.lang.String[] aInterceptorNames)
Sets list of interceptor names that should be registered |
void |
setRegisterTraceInterceptor(boolean aRegisterTraceInterceptor)
Specifies whether trace interceptor should be created for this factory. |
void |
setRemoteInvocationTraceInterceptor(org.aopalliance.intercept.MethodInterceptor aRemoteInvocationTraceInterceptor)
Sets interceptor that should be registered to trace remote calls |
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.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 |
Field Detail |
---|
protected java.lang.Object fServiceProxy
protected boolean fRegisterTraceInterceptor
protected org.springframework.beans.factory.BeanFactory fBeanFactory
protected java.lang.String[] fInterceptorNames
protected org.aopalliance.intercept.MethodInterceptor fRemoteInvocationTraceInterceptor
Constructor Detail |
---|
public AbstractRmiProxyFactoryBean()
Method Detail |
---|
public void setBeanFactory(org.springframework.beans.factory.BeanFactory aBeanFactory) throws org.springframework.beans.BeansException
Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method.
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
aBeanFactory
- owning BeanFactory (may not be null).
The bean can immediately call methods on the factory.
org.springframework.beans.BeansException
- in case of initialization errorsBeanInitializationException
public void afterPropertiesSet() throws java.lang.Exception
RemoteClientInterceptor
EndpointProvider
is specified and perform other
preparations
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class RemoteClientInterceptor<RmiEndpoint<SI extends ServiceMoniker>,SI extends ServiceMoniker>
java.lang.Exception
protected void addSpecifiedAdvices(org.springframework.aop.framework.ProxyFactory aProxyFactory)
aProxyFactory
- proxy factory used to create proxy for remote invocationgetInterceptorNames()
protected org.aopalliance.intercept.MethodInterceptor obtainRemoteInvocationTraceInterceptor()
registerTraceInterceptor
property is set to
true
.
createDefaultRemoteInvocationTraceInterceptor()
,
isRegisterTraceInterceptor()
protected org.aopalliance.intercept.MethodInterceptor createDefaultRemoteInvocationTraceInterceptor()
ClientRemoteInvocationTraceInterceptor
protected java.lang.String getProxyName()
public java.lang.Object getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean
public java.lang.Class getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
The singleton status of the FactoryBean itself will generally be provided by the owning BeanFactory; usually, it has to be defined as singleton there.
isSingleton
in interface org.springframework.beans.factory.FactoryBean
public void setRegisterTraceInterceptor(boolean aRegisterTraceInterceptor)
aRegisterTraceInterceptor
- true
if interceptor should be createdcreateDefaultRemoteInvocationTraceInterceptor()
public boolean isRegisterTraceInterceptor()
public java.lang.String[] getInterceptorNames()
public void setInterceptorNames(java.lang.String[] aInterceptorNames)
aInterceptorNames
- list of interceptor names that should be registeredpublic org.aopalliance.intercept.MethodInterceptor getRemoteInvocationTraceInterceptor()
isRegisterTraceInterceptor()
,
setRegisterTraceInterceptor(boolean)
public void setRemoteInvocationTraceInterceptor(org.aopalliance.intercept.MethodInterceptor aRemoteInvocationTraceInterceptor)
aRemoteInvocationTraceInterceptor
- interceptor that should be registered to trace remote callspublic EndpointFactory<RmiEndpoint<SI>,SI> getEndpointFactory()
RemoteClientInterceptor
getEndpointFactory
in class RemoteClientInterceptor<RmiEndpoint<SI extends ServiceMoniker>,SI extends ServiceMoniker>
public void setEndpointFactory(EndpointFactory<RmiEndpoint<SI>,SI> aEndpointFactory)
RemoteClientInterceptor
setEndpointFactory
in class RemoteClientInterceptor<RmiEndpoint<SI extends ServiceMoniker>,SI extends ServiceMoniker>
aEndpointFactory
- factory used to create endpointsRemoteClientInterceptor.createDefaultEndpointFactory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |