Class AmqpProxyFactoryBean
- java.lang.Object
-
- org.springframework.remoting.support.RemotingSupport
-
- org.springframework.remoting.support.RemoteAccessor
-
- org.springframework.amqp.remoting.client.AmqpClientInterceptor
-
- org.springframework.amqp.remoting.client.AmqpProxyFactoryBean
-
- All Implemented Interfaces:
Advice
,Interceptor
,MethodInterceptor
,Aware
,BeanClassLoaderAware
,FactoryBean<Object>
,InitializingBean
@Deprecated public class AmqpProxyFactoryBean extends AmqpClientInterceptor implements FactoryBean<Object>, InitializingBean
Deprecated.will be removed in 3.0.0.FactoryBean
for AMQP proxies. Exposes the proxied service for use as a bean reference, using the specified service interface. Proxies will throw Spring's unchecked RemoteAccessException on remote invocation failure.This is intended for an "RMI-style" (i.e. synchroneous) usage of the AMQP protocol. Obviously, AMQP allows for a much broader scope of execution styles, which are not the scope of the mechanism at hand.
Calling a method on the proxy will cause an AMQP message being sent according to the configured
AmqpTemplate
. This can be received and answered by anAmqpInvokerServiceExporter
.- Since:
- 1.2
- Author:
- David Bilge, Gary Russell
- See Also:
RemoteAccessor.setServiceInterface(java.lang.Class<?>)
,AmqpClientInterceptor
,RmiServiceExporter
,RemoteAccessException
-
-
Field Summary
-
Fields inherited from class org.springframework.remoting.support.RemotingSupport
logger
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description AmqpProxyFactoryBean()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
afterPropertiesSet()
Deprecated.Object
getObject()
Deprecated.Class<?>
getObjectType()
Deprecated.boolean
isSingleton()
Deprecated.-
Methods inherited from class org.springframework.amqp.remoting.client.AmqpClientInterceptor
getAmqpTemplate, getRemoteInvocationFactory, getRoutingKey, invoke, setAmqpTemplate, setRemoteInvocationFactory, setRoutingKey
-
Methods inherited from class org.springframework.remoting.support.RemoteAccessor
getServiceInterface, setServiceInterface
-
Methods inherited from class org.springframework.remoting.support.RemotingSupport
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
-
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
Deprecated.- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
getObject
public Object getObject()
Deprecated.- Specified by:
getObject
in interfaceFactoryBean<Object>
-
getObjectType
public Class<?> getObjectType()
Deprecated.- Specified by:
getObjectType
in interfaceFactoryBean<Object>
-
isSingleton
public boolean isSingleton()
Deprecated.- Specified by:
isSingleton
in interfaceFactoryBean<Object>
-
-